Tuesday, August 21, 2012

CSS Units


Measurement Values

UnitDescription
%percentage
ininch
cmcentimeter
mmmillimeter
em1em is equal to the current font size. 2em means 2 times the size of the current font. E.g., if an element is displayed with a font of 12 pt, then '2em' is 24 pt. The 'em' is a very useful unit in CSS, since it can adapt automatically to the font that the reader uses
exone ex is the x-height of a font (x-height is usually about half the font-size)
ptpoint (1 pt is the same as 1/72 inch)
pcpica (1 pc is the same as 12 points)
pxpixels (a dot on the computer screen)

No comments:

Post a Comment