View Full Version : Newb Question: Why isn't my font code working?


//\\//eji
02-28-2004, 03:43 AM
I change the CSS font size tag and the text remains the same size...the defaut size. Here is my code:

*<style type="text/css">

A:link
{ text-decoration: none; color:#ffff00; }
A:visited
{ text-decoration: none; color:#ffff00; }
A:active
{ text-decoration: none; color:#ffff00; }
A:hover
{ text-decoration: none; color:#ffff00; }

body
{ background: #ff6600;
font-family: 36pt times new roman;
color: #ffff00;
font-weight: bold;
font-size: xx-large;
}

</style>*

I'm new to CSS so what am I doing wrong?

P.S. Everything else works.

jazzberry
02-28-2004, 03:47 AM
you have two font sizes 36pt and xx-large. and really you should have background-color ad font-color instead of just background and then color ;)

body
{ background-color: #ff6600;
font-family: times new roman;
font-color: #ffff00;
font-weight: bold;
font-size: 36pt;

starlet
02-28-2004, 03:50 AM
you have the font size in twice, you either want it at 36pt or xx-large....not both...so remove the one you dont want and it should work :)

//\\//eji
02-28-2004, 03:52 AM
I changed all of that and it still comes up regular. The site is:

http://www.angelfire.com/ak5/jeckels

starlet
02-28-2004, 03:55 AM
Its because its in a table, add td to your CSS


<style type="text/css">

A:link
{ text-decoration: none; color:#ffff00; }
A:visited
{ text-decoration: none; color:#ffff00; }
A:active
{ text-decoration: none; color:#ffff00; }
A:hover
{ text-decoration: none; color:#ffff00; }

body, td
{ background-color: #ff6600;
font-family: times new roman;
font-color: #ffff00;
font-weight: bold;
font-size: xx-large;
}

</style>

//\\//eji
02-28-2004, 03:58 AM
<333333333333333

Thank you!