Connexion
One Laptop per Child Logo
Google Search
Google

LabsSphère Catégories
Css (9)
Php (8)
Javascript (11)
Xoops (5)
Divers (1)
Design (10)

Using max-width on images can make them disappear in IE8


Auteur : Roger Johansson | 456 Berea Street.com
Date : 2012-02-02T20:16:54+01:00
Lectures : 4

I recently ran into a problem that was really hard to figure out. I was working on a responsive design where I used img {max-width:100%;} to make sure that images would be downsized rather than overflow in narrower viewports.



It worked great everywhere... until I went to check in IE8. The site's logo was gone! None of the usual IE bug fixes cured the problem, and it took me quite a while to realise that max-width was part of the problem.

Read full post

Posted in , .

Copyright © Roger Johansson






URL : http://labs.xoofoo.org/modules/planet/view.article.php/18941
Trackback : http://labs.xoofoo.org/modules/planet/trackback.php/18941

Les commentaires appartiennent à leurs auteurs. Nous ne sommes pas responsables de leur contenu.
Auteur Conversation