Results 1 to 5 of 5

Thread: How to change Backgound colour

  1. #1
    Join Date
    Jul 2006
    Posts
    27
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default How to change Backgound colour

    i centred my site with the help of following css code

    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
    Last edited by hariprasad; 05-10-2010 at 03:17 PM.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    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".
    Code:
    background:#ffffff;
    Corrections to my coding/thoughts welcome.

  3. The Following User Says Thank You to bluewalrus For This Useful Post:

    hariprasad (05-10-2010)

  4. #3
    Join Date
    Jul 2006
    Posts
    27
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    you can see the site now xxxx ...bottom part became white but not upper part...
    Last edited by hariprasad; 05-10-2010 at 03:17 PM.

  5. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    in style.css you have


    Code:
    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
    Code:
    background-image: url(images/bgindex.jpg);
    Corrections to my coding/thoughts welcome.

  6. The Following User Says Thank You to bluewalrus For This Useful Post:

    hariprasad (05-10-2010)

  7. #5
    Join Date
    Jul 2006
    Posts
    27
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default

    hey thank you very much...it worked....

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •