2 ms·
Yeah, on 96 DPI. Anywhere else you rely on browser scaling if you don't use pt. Edit: Ok, so I'm not a web developer, so I read after it: http://www.w3.org/Sty
by leni536 11y ago
Yeah, on 96 DPI. Anywhere else you rely on browser scaling if you don't use pt.
Edit:
Ok, so I'm not a web developer, so I read after it:
http://www.w3.org/Style/Examples/007/units.en.html http://www.w3.org/Style/Examples/007/units.en.html
Turns out I'm wrong about that 1px is required to be 1 device pixel. But the 3/4 rule is not universal and only applies to print. I don't know how different implementations handle this.
- err4nt 11y agoCSS 'pixels' are a dark, dark magic, come back to the light! CSS pixels are a measure of your viewing angle, the physical measurement of the device, and your screen's pixel density. Basically 15px should look like 15px should look like 15px, no matter what you're looking at, but because the actual pixel densities of screens differ it can be really weird to think about. You may need a 30px icon to display 15px wide on a retina screen, even though it sounds like a 15px image should be 100% large (and therefore crisp) at 15px in CSS.