...

View Full Version : CSS Font Size?



forcerhpool
08-10-2010, 01:26 PM
What is the best way to apply font size in CSS. I'm still using '10px'

I've started seeing 65%, 1.5em and even 65%/1.5em

when would i use this? and what are the values for 10px/12px

cyberdesignz
08-10-2010, 02:22 PM
Percentage is the cheapest way to set the font size. Font size always recommended to give in px or em.

Major Payne
08-11-2010, 07:54 AM
I set a base font size at 1.0 em and then use percents for the rest. Of course, IE is going to need some tweaking.

Care With Font Size: http://www.w3.org/QA/Tips/font-size

VIPStephan
08-11-2010, 10:47 AM
when would i use this? and what are the values for 10px/12px

The value before the slash is the font size, the value after the slash is the line height. But this only applies if you use the shortcut writing, e. g. font: italic 10px/12px Arial, Helvetica, Sans-serif;



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum