3 ms·
>Its not like I'm saying "if screen width is above 750px, render X" (cough css). CSS "px" units are only raw pixels on 96dpi displays. It's normalized with res
by AgentME 7y ago
>Its not like I'm saying "if screen width is above 750px, render X" (cough css).
CSS "px" units are only raw pixels on 96dpi displays. It's normalized with respect to the dpi. On higher-dpi displays, CSS "px" can refer to multiple pixels. So controlling layout based on the screen's width in "px" is fine; it won't break when someone switches to a super high dpi device.