Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In a time of display resolution variances between 96 and 250+ ppi (slowly coming to big screen too), why are we still talking about fixed pixels instead of relative units?


The px unit in css is a bit misleading, the measurement doesn't always correspond to the size of the device pixels. From the spec[1]:

"For a CSS device, these dimensions are either anchored by relating the physical units to their physical measurements, or by relating the pixel unit to the reference pixel. For print media and similar high-resolution devices, the anchor unit should be one of the standard physical units (inches, centimeters, etc). For lower-resolution devices, and devices with unusual viewing distances, it is recommended instead that the anchor unit be the pixel unit. For such devices it is recommended that the pixel unit refer to the whole number of device pixels that best approximates the reference pixel."

[1] http://www.w3.org/TR/css3-values/#absolute-lengths




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: