This Message Forum is no longer in use

Please use the new Bravenet Help Forums FOUND HERE

General Forum
This Forum is Locked
Author
Comment
White Stripe

Hey again. I want to know how I can edit my HTML / CSS file to get the sides of my webpage black, but have the body or middle still white.

So, I want the background to be black, but a white stripe for the background where the main writing / page stuff is. Can someone help? :D

www.am1610.bravehost.com

Browser: IE8

OS: XP

Re: White Stripe

In your style sheet, "style.css", the following style definitions exist. The first one sets the overall background color to white (#FFFFFF). The second one is for the center of your web page. Because it has not background definition, it inherits the white background from the "body" definition.

Code:
body {margin:0; padding:0; background:#FFFFFF ; height:100}
.site_center1{margin:0 auto; text-align:left; width:766px}


To make the overall background black (#000000), but leave the center of the web page background as white (#FFFFFF), make the changes below. This sets the overall background to black, but defines the center as white.

Code:
body {margin:0; padding:0; background:#000000 ; height:100}
.site_center1{background:#ffffff; margin:0 auto; text-align:left; width:766px}

Browser: Firefox, Netscape, Sea Monkey, Internet Explorer, .....

OS: Solaris (Sparc,x86), Linux, XP