[PHP] browser rendering
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
Re: [PHP] browser rendering
On 13-06-02 09:09 AM, georg wrote: 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 !!! img src=smiley.gif alt=Smiley face height=42 width=42 The img tag supports specifying the height and width. -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] browser rendering
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.chamb...@telia.com: 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
Re: [PHP] browser rendering
Width and height parameters on an image aren't required in HTML, it's preferred to use CSS. If different browsers are displaying the image at different sizes I'd look at the browser zoom level maybe. Daniel Pöllmann poellmann.dan...@gmail.com wrote: 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.chamb...@telia.com: 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 Thanks, Ash
Re: [PHP] browser rendering
On Sun, Jun 2, 2013 at 3:09 PM, georg georg.chamb...@telia.com wrote: 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 Code? It could also be something with the parent element. - Matijn
Re: [PHP] browser rendering
georg georg.chamb...@telia.com wrote: Possibly this issue is for other fora, which you might direct me, anyways; It's actually an HTML question. But most PHPers do a lot of HTML, too, it turns. out. :) 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 !!! Cross-browser testing has been the bane of web design since basically Day 0 of the WWW. It doesn't seem to be abating, either, while IE10 comes more in line, Opera and now Chrome are branching out, and we still have a huge legacy of older IE versions. Achieving completely identical views on different browsers is a fool's errand. Just get it close enough, and move on. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php