Re: browser rendering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well I think it depends.
When the image is part of the website, like a chart or something like that
you can use the height and width attribute inside the img tag (don't forget
alt for correct validation).
When the image is part of the layout or you're having multiple images like
in a gallery with the same height and width you should use the
corrosponding css.

It might be useful to resize the image on serverside so that the browser
doesn't have to load a big image and then resize it to a tiny pic. This
will - in most cases - speed up your website. But you have to use the tags
even with a perfectly sized picture, otherwise the browser will be confused
when the image can't be loaded

Daniel
Am 02.06.2013 15:12 schrieb "georg" <georg.chambert@xxxxxxxxx>:

> Possibly this issue is for other fora, which you might direct me, anyways;
>
> I have been dablling making my own little webpages, however having gotten
> a nice
> result jon fireforx, I realize picture sizes gets treated very differntly
> on different browsers !!!
> so the looks of the pages get very strange from smaller (Opera) and much
> bigger (Explorer)
> brower !!!
>
> any hints for mitigation ?
>
> br georg
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux