I'm clueless.

Discussion in 'CSS' started by Mitchell, Jul 14, 2010.

  1. #1
    I want this pages background to be gray and other pages will be green. I put class gry, but it ignores it.

    
    <body class="gry">
    
    HTML:
    body {background-color: rgb(72,83,79); text-decoration: none;}
    .adds body {background-color: rgb(150,150,150); text-decoration: none;}
     
    Mitchell, Jul 14, 2010 IP
  2. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What does your 'gry' CSS class look like?

    
    body {background-color: #fff} /* normal, white background */
    .gry {background-color: #48534f} /* grey */
    
    Code (markup):
    So this would be a normal page:
    
    	<body>
    		<!-- stuff here -->
    </body>
    
    HTML:
    And this would be the one with a custom background:
    
    	<body class="gry">
    		<!-- stuff here -->
    </body>
    
    HTML:
     
    Deacalion, Jul 14, 2010 IP
  3. Mitchell

    Mitchell Peon

    Messages:
    204
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry, I made typo on forum. it looks like this.

    body {background-color: rgb(72,83,79); text-decoration: none;}
    .gry body {background-color: rgb(150,150,150); text-decoration: none;}
     
    Mitchell, Jul 14, 2010 IP
  4. Mitchell

    Mitchell Peon

    Messages:
    204
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That worked. Thanks for your help.
     
    Mitchell, Jul 14, 2010 IP
  5. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Any time. :)
     
    Deacalion, Jul 14, 2010 IP