Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Closed] How can I make tag behave like background-size: cover;? Reply To: [Closed] How can I make tag behave like background-size: cover;?

#158318
__
Participant

background-size seems like a pretty good solution, to me. Simple, robust, very good support.

But if you prefer images, and if you can control the aspect ratio of the photo “area,” then you could probably make the height:auto solution work just fine too (e.g., with hidden overflow on the container).

Can you show me an example (pen) that breaks?