Quote:
Originally Posted by JSWolf
Depending on the aspect of the image, I would make the height to 100%. For example, the cover.
I set img so it doesn't go off the screen. I don't use auto and I don't need it. It's just unneeded code.
|
The cover is about the ONLY thing were you set both 100% and only if you you don't care about aspect ratio.
If it's a square to landscape shape image (and likely portrait images not taller aspect than screen aspect) the height is auto if setting width and this maintains aspect ratio. It's not extra or unneeded code. A cover is a special case.