CSS Quickie!

Conor

New Member
Messages
3,570
Reaction score
0
Points
0
Got a quick CSS problem. Just getting back into coding so bear with me!

I need a font color code for each individual div for my layout. For instance:

Div1: Black text
Div2: White Text
Div3: Black Text
Div4: White text

This is because my background color for each div is switching White, black, white, black.

Thanks :)
 

Chris Z

Active Member
Messages
5,603
Reaction score
0
Points
36
Do you mean
HTML:
<style type="text/css">
#div1
{
     color:#000;
}
#div2
{
     color:#fff;
}
</style>
 
Last edited:
Top