CSS misbehaving!
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 .
Thanks in advance,
Jon
steve40 posted this at 21:04 — 3rd August 2006.
He has: 490 posts
Joined: May 2005
It has to be "font-color".
jjbutler88 posted this at 21:05 — 3rd August 2006.
They have: 9 posts
Joined: Aug 2006
oh you legend . I cant believe that one.
Busy posted this at 21:05 — 3rd August 2006.
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;
jjbutler88 posted this at 13:17 — 4th August 2006.
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 posted this at 13:31 — 4th August 2006.
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.