DEV Community

Discussion on: Creating a pure responsive CSS Grid Hero Image or Banner Image

Collapse
 
billraymond profile image
Bill Raymond

Nice article and glad you like this approach. It seems like there’s still great reasons to use flex, but yes I agree Grids are much easier to work with.

The specific reasons I don’t like background images is it is hard to make them dynamic. For example, take a blog post. Most blog posts have a unique image in them. You want to add those images to the markup (HTML), not the CSS. Also, if you are coding dynamic sites, background images contained within the CSS feels clunky.

I’m not against the use of a background image, but it feels like you get a lot more flexibility with a standard image.

Thanks again!