Forums

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

Home Forums CSS make background images fit all screens without scrolling Reply To: make background images fit all screens without scrolling

#246101
Shikkediel
Participant

That indeed is one approach. The question’s quite common and from what I know, it becomes tricky when the aspect ratio of the image is higher than that of the screen – it’ll leave a gap below. In short, I believe there’s no bullet proof solution to this for all screen sizes that’s also completely straightforward. One could use background-size: cover or media queries with aspect ratios but both have limitations as well.