- Messaggi: 20
- Ringraziamenti ricevuti 1
Making thumbnail images responsive
- philraymond
- Autore della discussione
- Offline
- Giovane Utente
Less
Di più
11 Anni 10 Mesi fa #1170
da philraymond
Making thumbnail images responsive è stato creato da 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
Si prega Accesso o Crea un account a partecipare alla conversazione.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
11 Anni 10 Mesi fa #1171
da andrea_4g
Risposta da andrea_4g al 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.
Si prega Accesso o Crea un account a partecipare alla conversazione.
Tempo creazione pagina: 0.147 secondi