CSS misbehaving!

They have: 9 posts

Joined: Aug 2006

Hi
I have created a css file for my site, and have linked it in appropriately at the top of my HTML code. Most aspects of the css file work, apart from one. My body text on my page is in blah brackets, so my css code reads along the lines of

p{
font-colour: white
}

But this has no effect on the font colour! I can change the font family and size using this, but not the colour! I tried both 'white' and the hex value for white. Neither worked. Any thoughts? Im pretty new so it might be blisteringly obvious, be patient with me Sticking out tongue.
Thanks in advance,
Jon

He has: 490 posts

Joined: May 2005

It has to be "font-color". Smiling

They have: 9 posts

Joined: Aug 2006

oh you legend Laughing out loud. I cant believe that one.

Busy's picture

He has: 6,151 posts

Joined: May 2001

p {
color:white;
}

you should also declare the background color too with white text, is just: background:color;

They have: 9 posts

Joined: Aug 2006

Ok, now thats all working, im trying to use rollover buttons, but no javascript. Apparently its possible with CSS, however I know nothing about this in particular. I read a good tutorial, so I have the CSS code in place, and 2 button images (1 'up, 1 'down') and i want to make a rollover effect. What is the html code for this??
thanks
Jon

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

There are some examples of CSS rollovers on this site:

http://www.pmob.co.uk/

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.