• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

CSS question

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:
 
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>
 
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 🙂
 
Back
Top