2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

fixes #8345: use inline-block on .img-responsive

This commit is contained in:
Mark Otto
2013-07-01 19:42:26 -07:00
parent 9da90adb4c
commit 08b3515fd7
5 changed files with 11 additions and 18 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ img {
// Responsive images (ensure images don't scale beyond their parents)
.img-responsive {
display: block;
display: inline-block;
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
}