Forums

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

Home Forums CSS How do I resize images that are used as div backgrounds? Reply To: How do I resize images that are used as div backgrounds?

#238605
Paulie_D
Member

I dont like working with img tags so instead im using div tags and creating style background-image attributes instead.

Then you’re probably doing something wrong.

Unless these are for styling….these should be image tags..it sounds like they are content.

Creating empty divs to show content images is very poor practice….and screenreaders will choke on it.