From 46e8a5817d0ddb98343dde1e0f0f8b335aba41e3 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 18 Jun 2014 17:34:09 -0700 Subject: fixes #10073: add width: 100%; for ie10 and below to size svg.img-responsive correctly --- less/mixins/image.less | 1 + 1 file changed, 1 insertion(+) (limited to 'less') diff --git a/less/mixins/image.less b/less/mixins/image.less index f233cb3e1..5d2cccb27 100644 --- a/less/mixins/image.less +++ b/less/mixins/image.less @@ -8,6 +8,7 @@ // Keep images from scaling beyond the width of their parents. .img-responsive(@display: block) { display: @display; + width: 100% \9; // Force IE10 and below to size SVG images correctly max-width: 100%; // Part 1: Set a maximum relative to the parent height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching } -- cgit v1.2.3