CSS for page properties background color

Discussion in 'CSS' started by camster, Aug 23, 2007.

  1. #1
    I was wondering if someone would know how to assign the "page properties background color" to an external css file so that I only have to change the color in the CSS file and it will change the main body color on all the related pages. Would someone know:
    1.) The code that goes into the individual html pages
    2.) The code the is placed in the external CSS file.

    I've looked all over the net for this but cant find a solution so any suggestions would really be appreciated.

    Thanks
    Camster
     
    camster, Aug 23, 2007 IP
  2. GWiz

    GWiz Peon

    Messages:
    359
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Inside the HTML page in the <head> area add this code:

    <link rel="stylesheet" href="filename.css" />
    Code (markup):
    Where as filename.css is the actual file name of your css.

    And inside the css file you would use this code:

    body {
    	background-color:#000000;
    }
    Code (markup):
    This in this example, it makes the background black. Change #000000 to the desired color.
     
    GWiz, Aug 24, 2007 IP