Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How accurate are CSS's real-world units?

Tags:

css

inches

I'm beginning experiments with CSS' real-world units, specifically, in and cm, for purposes of printing.

Are these units based on how they will be displayed on-screen or how they will be printed by a printer? How accurate are these units?

like image 838
esqew Avatar asked Sep 08 '11 00:09

esqew


1 Answers

According to W3C, only em, px and % are recommended for screen, the others for print.

Therefore, in a print application, the in and cm measurements could be precisely accurate.

There is an excellent article on such applications here:
http://meyerweb.com/eric/articles/webrev/200001.html

like image 61
Stephen Avatar answered Oct 27 '22 20:10

Stephen