Forum : what is px?
Brief description  about Online courses   join in Online courses
View Navneet  Khanna 's Profile

what is px?

Good Morning Tutor

What does this mean....
font-size: 12px?

Can we use any other unit other than px?

Thanks
Asked by Navneet Khanna | Aug 10, 2009 |  Reply now
Replies (2)
View navneet khanna 's Profile
Thanks Alka
Aug 11, 2009
View alka purwar 's Profile
thanks Navneet for the query!

There are different font units available in CSS..
i) em: This is the default font size set in the users' browser preferences. It refers to the width of the letter m in the font used. Font sizes are determined relative to this initial measure.

ii) ex: This refers to the x-height of a font, or the size of the lowercase x in the font. Font sizes are determined relative to this initial measure.

iii) pixels (px): This refers to the number of pixels in the viewing device. Font sizes are determined relative to the viewing device resolution.

i hope this site wiil give more deatail about the topic:http://www.bigbaer.com/css_tutorials/css_font_size.htm
Aug 11, 2009