- Posts: 20
- Thank you received: 1
Making thumbnail images responsive
- philraymond
- Topic Author
- Offline
- Junior Member
Less
More
11 years 11 months ago #1170
by philraymond
Making thumbnail images responsive was created by philraymond
Right now the thumbnail width and height settings are used directly in the image tag. Wouldn't it be better to do it through css?
The problem right now is that the images aren't responsive, so they're too big on the ipod. If they were sized in css, I could use max-width: 100% to automatically scale them down.
Any thoughts?
Thanks,
Phil
The problem right now is that the images aren't responsive, so they're too big on the ipod. If they were sized in css, I could use max-width: 100% to automatically scale them down.
Any thoughts?
Thanks,
Phil
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
11 years 11 months ago #1171
by andrea_4g
Replied by andrea_4g on topic Re: Making thumbnail images responsive
Writing images heights and widths is generally accepted as a good practice as it makes the rendering of the page by the browser faster. On the other hand, leaving image resizing to the browser usually leads to so-so results and makes rendering a tougher, but this is not the point.
You might want to tweak function showPreviewImage in components/com_customproperties/views/show/view.html.php to remove explicit sizes declaration.
You might want to tweak function showPreviewImage in components/com_customproperties/views/show/view.html.php to remove explicit sizes declaration.
Please Log in or Create an account to join the conversation.
Time to create page: 0.114 seconds