diff options
Diffstat (limited to 'less/reset.less')
| -rw-r--r-- | less/reset.less | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/less/reset.less b/less/reset.less index 3261124e0..2901a85c8 100644 --- a/less/reset.less +++ b/less/reset.less @@ -77,9 +77,11 @@ sub { // ------------------------- img { - max-width: 100%; // Make images inherently responsive + /* Responsive images (ensure images don't scale beyond their parents) */ + max-width: 100%; /* Part 1: Set a maxium relative to the parent */ width: auto\9; /* IE7-8 need help adjusting responsive images */ - height: auto; // Make images inherently responsive + height: auto; /* Part 2: Scale the height according to the width, otherwise you get stretching */ + vertical-align: middle; border: 0; -ms-interpolation-mode: bicubic; |
