bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Height attribute no longer applies to images?

Open tddyco opened this issue 14 years ago • 3 comments

It seems that the height attribute no longer applies to images, since their CSS height defaults to auto with the new Bootstrap. I feel like there has to be some obvious solution to this, but nothing I tried worked, such as height: inherit and height: initial.

tddyco avatar Aug 21 '12 03:08 tddyco

it does indeed have to do with height: auto on the img tag, specifying a width instead fixed this issue for me.

LastRose avatar Aug 21 '12 12:08 LastRose

Indeed, but the case I ran into this issue with was scaling images by only setting their height. Obviously setting the height via CSS via the style attribute works, but it's annoying, non semantic, and may affect rendering speed.

tddyco avatar Aug 21 '12 14:08 tddyco

You can look back through at the issues on this, but we've sticking with what we have for now on the img heights and widths. And rendering speed isn't going to be affected if it's inline or not, FYI.

mdo avatar Aug 27 '12 06:08 mdo