From 8cda830eaf568be8204a96ca635c0bed373028ff Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 3 Sep 2012 01:13:42 -0700 Subject: [PATCH] fixes #4146: IE7-8 responsive image helper --- docs/assets/css/bootstrap.css | 1 + less/reset.less | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index ccafb83bb4..32cc021ea9 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -67,6 +67,7 @@ sub { } img { + width: auto\9; height: auto; max-width: 100%; vertical-align: middle; diff --git a/less/reset.less b/less/reset.less index fc27e9c878..3261124e0f 100644 --- a/less/reset.less +++ b/less/reset.less @@ -78,6 +78,7 @@ sub { img { max-width: 100%; // Make images inherently responsive + width: auto\9; /* IE7-8 need help adjusting responsive images */ height: auto; // Make images inherently responsive vertical-align: middle; border: 0;