Home › Forums › CSS › make background images fit all screens without scrolling › Reply To: make background images fit all screens without scrolling
October 2, 2016 at 1:33 pm
#246096
WayneKenney
Participant
I have a solution,
Try this:
body
{
background:url(“img.jpg”) top right no-repeat;
background-attachment:fixed;
}
The background image no matter what size will stretch to fit the entire window and it will stay perfectly static and unchanged as you scroll down the page.