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;}
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:
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;}