Permalink
Browse files

Fix for IE8 max-width bug

  • Loading branch information...
jacobrask committed Nov 17, 2012
1 parent 1e9833c commit 0cf075b633a18197e71fdc3bd0ad3283c5f6720f
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/normalize.css
View
@@ -69,14 +69,15 @@ Set default styles in IE 8/9 and other older browsers. */
------------------------------------------------------------------------ */
._ img {
- /* Remove border when inside `a` element in IE 8/9. */
border: 0;
- /* Avoid horizontal scrollbars from wide images. Beware of
- [disappearing images in IE 8](http://www.456bereastreet.com/archive/201202/using_max-width_on_images_can_make_them_disappear_in_ie8/). */
max-width: 100%;
+ height: auto;
+ /* Fix for [disappearing images in IE 8](http://www.456bereastreet.com/archive/201202/using_max-width_on_images_can_make_them_disappear_in_ie8/). */
+ width: auto\9;
/* Remove the gap between images and their container. */
vertical-align: middle;
}
+
._ svg:not(:root) {
/* overflow displayed oddly in IE 9. */
overflow: hidden;

0 comments on commit 0cf075b

Please sign in to comment.