CSS question

BeauJangles

Lifer
Aug 26, 2001
13,941
1
0
My my style sheet i have the following:

.bg {font-size: 19 pt}

When I try and use it on a webpage, however, the font is correctly resized in IE but not Firefox. THe larger code should be Huck of the Irish, no? Or is there something wrong with what I'm doing?

The pertinent code is attached:
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
you need to take the while space out between the number and the unit
font-size: 19pt; /* right - and i'd recommend ending a rule with a semicolon ; */
instead of
font-size: 19 pt; /* wrong */

<rant>
it works on msie because msie automagically correct most webmaster's mistakes with what it thinks is right
this often leads to bad web programmer/designer writing sloppy codes that works on one browser but not the others.
</rant>
 

BeauJangles

Lifer
Aug 26, 2001
13,941
1
0
Originally posted by: Nothinman
.. in IE but not Firefox ..

Generally that means something is wrong with your CSS, try using the online validator at w3c.org.

yeah i checked that and I assumed, stndn, that i had done something wrong because it didn't work in firefox!

Thanks guys :)