3 ms·
Pixel measurements in CSS are not actual physical pixels. I think that's rather silly, but on the other hand what can you except from web tech....
by zokier 15y ago
Pixel measurements in CSS are not actual physical pixels. I think that's rather silly, but on the other hand what can you except from web tech....
- TazeTSchnitzel 15y agoThey are pixels at 100%, but a lot of mobile devices have a default viewport width making this meaningless.
- zokier 15y agoNope. CSS 2.1 specification says: * pt: points — the points used by CSS are equal to 1/72nd of 1in. * px: pixel units — 1px is equal to 0.75pt.
- raldi 15y agoBut in practice, doesn't every major non-mobile browser use 1 px = 1 pixel?
- andybak 15y agoThat being the only sane option, I sincerely hope so. Years of trying to explain to designers from a print background that it's much easier to think in pixels than doing a mental transformation from mm to dpi to screen and now the whole world goes crazy.
- zokier 15y agoMost desktop browser default to 96 PPI (which is also the default in Windows), which results to 1px being 1 pixel. 0.75 pt/px * 1/72 in/pt * 96 pixels/in = 1 pixel/px.