CSS Forum

Sorry if this is too much code. I am a cut and paster at this. How would I change this CSS so the background color is pale green (instead of dark grey) and the text is black (instead of white). Thanks.

We all have to start somewhere, that counts for me too. I try to answer some "easy" questions (as far as those exist, thus the quotes) every now and then, so other people have more time to help me with the things I can't work out. :-) The two CSS properties you need for this are background-color and color. Background-color being the color of the background of the element attached to it, color the font-color. If you want your font color to be black instead of white, you replace #ffffff for (font-)color specifications by #000000 (or the shorthand for that: #000). I can't discover any pale green or dark grey colors, but that is probably due to my screen. I get a pale blue for #8eb2d3 and a light grey for #cccccc. In any case if you want an element to have a background with a certain color, you specify background-color: ......, e.g.a:visited {background-color: #......}. Haven't tested it and never used background-color for links, so if background-color and links don't match let me know and post the html so I could give it a div to accomplish what you want.