3 ms·
Physical units like points and inches render inconsistently because operating systems make different assumptions about the pixels per inch of a screen. They wo
by xtian 15y ago
Physical units like points and inches render inconsistently because operating systems make different assumptions about the pixels per inch of a screen.
They work great for @media print styles, though.
- JoshTriplett 15y agoPhysical units intentionally render at a fixed physical size across devices (with the exception of some broken browsers). If I ask my browser for an 8.5in-wide box, and hold a piece of (US letter) paper up to my screen, the width matches exactly. If you really want a fixed size in pixels, use pixels, but please don't for anything other than images (and take care with images).
- xtian 15y agoSure, but this is only true if the operating system knows the correct ppi for the display (not guaranteed) and only useful if you know the physical dimensions of the client (almost never).
- rimantas 15y agoPixels are relative units. Use them whenever you want. There is no problem with pixels. There are many with IE.
- deleted 15y ago[deleted]