Forums

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

Home Forums CSS Making background images repeat further than screen size on given website Re: Making background images repeat further than screen size on given website

#84390
Mitchell
Member

This is a problem I have come across a few times when setting heights or widths to 100%.
The viewport when the page loads is classed as 100%, so when you go beyond this by either scrolling or zooming out, the div is no longer shown.

However, your page is structured in a very strange way.
I usually use the follow a basic markup of

HTML






Content


CSS


#container {
margin:0 auto;
width: 960px;
}
#header, #nav, #content, #footer {
width:100%;
}

Then obviously style each section how I want it to look, i.e. adding the stripey background to the content div etc. This will then become the right size when the content goes in.