I used css units, px and em frequently & seldom pt. But wonder, on what context other units in, cm, mm, pc, ex are used?
+3
A:
These units are used for media other than screen, such as printing etc.
I haven't yet began using it for such purposes but will very soon.
Dmitri Farkov
2009-09-22 18:31:17
+1
A:
See this article on CSS Units.
Excerpt:
Absolute length units are highly dependent on the output medium, and so are less useful than relative units. The following absolute units are available:
- in (inches; 1in=2.54cm)
- cm (centimeters; 1cm=10mm)
- mm (millimeters)
- pt (points; 1pt=1/72in)
- pc (picas; 1pc=12pt)
So -- absolute units are useful for specific output medium, but not much else. Relative units are the better choice (and hence much more commonly used) since they adjust better depending on the output medium.
Donut
2009-09-22 18:34:29