aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-09-03 01:13:42 -0700
committerMark Otto <[email protected]>2012-09-03 01:13:42 -0700
commit8cda830eaf568be8204a96ca635c0bed373028ff (patch)
tree9600850c6cc5b4ee8ffcdf0ad2b7935b6736be25
parentf25129361be813af4c399da8e3041a43ccd2a943 (diff)
downloadbootstrap-8cda830eaf568be8204a96ca635c0bed373028ff.tar.xz
bootstrap-8cda830eaf568be8204a96ca635c0bed373028ff.zip
fixes #4146: IE7-8 responsive image helper
-rw-r--r--docs/assets/css/bootstrap.css1
-rw-r--r--less/reset.less1
2 files changed, 2 insertions, 0 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index ccafb83bb..32cc021ea 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 fc27e9c87..3261124e0 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;