color for the text in a css

C

cdt_sylvestre

hi
i m trying to figure how i can give a color to a 'normal' text (no <P>,
....)

i tried
html,body {
background-color : #6363a9;
color=#FFFFFF;
}

but that doesn t work

thx
 
B

Barbara de Zoete

hi
i m trying to figure how i can give a color to a 'normal' text (no <P>,
...)

i tried
html,body {
background-color : #6363a9;
color=#FFFFFF;
}

but that doesn t work

It shouldn't. You used a '=' that should have been a ':'

html, body {
background-color:#6363a9;
color:#FFFFFF; }

When switching from using html attributes in the markup of the page itself
to stylesheets, the notation can be a bit confusing , since you are used
to one thing and now have to use another.
Try validate your stylesheets at <http://jigsaw.w3.org/css-validator/> for
that validator will notify you of stuff like using '=' instead of ':'.
 
C

cdt_sylvestre

yep, thanx a lot
Barbara de Zoete said:
It shouldn't. You used a '=' that should have been a ':'

html, body {
background-color:#6363a9;
color:#FFFFFF; }

When switching from using html attributes in the markup of the page itself
to stylesheets, the notation can be a bit confusing , since you are used
to one thing and now have to use another.
Try validate your stylesheets at <http://jigsaw.w3.org/css-validator/> for
that validator will notify you of stuff like using '=' instead of ':'.
 
S

Starshine Moonbeam

cdt_sylvestre said:
hi
i m trying to figure how i can give a color to a 'normal' text (no <P>,
...)

i tried
html,body {
background-color : #6363a9;
color:#FFFFFF;
}

fixed (should be, anyway)
 
S

SpaceGirl

cdt_sylvestre said:
hi
i m trying to figure how i can give a color to a 'normal' text (no <P>,
...)

i tried
html,body {
background-color : #6363a9;
color=#FFFFFF;
}

but that doesn t work

thx

a tip is to always VALIDATE your code, whether it is CSS or HTML. You
can find validators (which will test your code to see if it is right) at
http://www.w3.org


Really you should check there first as this mistakes are really easy to
make, and very annoying!


--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top