justuptime.com - monitor your servers & websites

CSS misbehaving!

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

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: 495 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
Modrater

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 Smiling "); } ?>
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 ...

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
Administrator

She has: 10,032 posts

Joined: Jun 1999

There are some examples of CSS rollovers on this site:

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