Log in

View Full Version : Resolved How to change Backgound colour



hariprasad
05-10-2010, 08:23 AM
i centred my site with the help of following css code


body {
text-align: center;
}

#container {
margin: 0 auto;
width: xxxpx;
}

but i want to change the left and right margin colour to white...
what should i add to make this change...

see screenshot for details...



thanks in advance

bluewalrus
05-10-2010, 01:13 PM
Need more code than that. Where are you defining it currently, that looks like a background image is currently the background. If you have it called with "background:url(something);" replace "url()" with "#ffffff".

background:#ffffff;

hariprasad
05-10-2010, 02:56 PM
you can see the site now xxxx ...bottom part became white but not upper part...

bluewalrus
05-10-2010, 03:03 PM
in style.css you have



body { font-size:76%;
margin:0;
padding:0;
color:#FFFFFF;
background-image: url(images/bgindex.jpg);
background-position:top;
background-repeat:repeat-x;
background-color:#000000;
}


Delete
background-image: url(images/bgindex.jpg);

hariprasad
05-10-2010, 03:09 PM
hey thank you very much...it worked....