I want a background that is the size of the viewer's screen, and I want another background that is 800pixels at all times. The 800 pixel one should be centered and behind the content of my web page. I don't want images, just two different colors. Is there a way for me to do that?
Is it possible for me to have multiple backgrounds?
Collapse
X
-
If you have a structure like:
Then you can replace the <p>aragraph with even more div's or other elements if you want. Also, I recommend doing it all in a nice CSS file so you don't need to be messy like my example ;)Code:<div style="background-color: blue; width: 100%;"> <div style="background-color: red; width: 800px; margin: 0 auto;"> <p>This is your text!!!</p> </div> </div>
Comment
Comment