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: 495 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,148 posts
Joined: May 2001
p {
color:white;
}
you should also declare the background color too with white text, is just: background:color;
<?bhb if(broken){ echo("It wasn't me
"); } ?>
Learn HTML the ez way - EzHTML.net
Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...
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: 10,032 posts
Joined: Jun 1999
There are some examples of CSS rollovers on this site:
http://www.pmob.co.uk/
Megan
My web design blog