3 ms·
"The px unit is the magic unit of CSS. It is not related to the current font and usually not related to physical centimeters or inches either. The px unit is de
by Raphmedia 8y ago
"The px unit is the magic unit of CSS. It is not related to the current font and usually not related to physical centimeters or inches either. The px unit is defined to be small but visible, and such that a horizontal 1px wide line can be displayed with sharp edges (no anti-aliasing). What is sharp, small and visible depends on the device and the way it is used: do you hold it close to your eyes, like a mobile phone, at arms length, like a computer monitor, or somewhere in between, like an e-book reader? The px is thus not defined as a constant length, but as something that depends on the type of device and its typical use."
https://www.w3.org/Style/Examples/007/units.en.html https://www.w3.org/Style/Examples/007/units.en.html
- chrisseaton 8y ago> What is sharp, small and visible depends on the device and the way it is used How can you use this vague definition to do anything useful? I would imagine they simply mean 'it's a pixel, or something as physically large as pixels used to be until we got retina screens' but they can't say that as it doesn't sound technical enough!
- Raphmedia 8y agoPretty much, yes. Screens changed and evolved so now it doesn't mean much and most people will attempt to skip using them.
- Dylan16807 8y agoSo that mentions that print sets px at 96dpi. I wonder why it doesn't mention the definition of the reference pixel for high resolution devices. Which is the angle you get when you hold a 96dpi image exactly 28 inches from your eye. If your screen is 1.5x further you make the pixel 1.5x bigger, if your screen is 3x closer you make the pixel 3x smaller, etc.