Skip to content

Commit

Permalink
(less) fixes twbs#10073: add width: 100%; for ie10 and below to size …
Browse files Browse the repository at this point in the history
…svg.img-responsive correctly
  • Loading branch information
mdo committed Jun 19, 2014
1 parent efc44cc commit c29285a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mixins/image.less
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c29285a

Please sign in to comment.