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

#246100
WayneKenney
Participant

OK, good point. How about:

body {
background: url(“image.jpg”) top right no-repeat;
background-attachment: fixed;
background-size: 100%;
}

Adding “background-size: 100%;” for proper scaling if the image is in fact that small should rectify the issue. The background should still render perfectly even when the page has scroll bars.

Here we are:
Test