2 ms·
Thats a pretty good way, but it's not dpi independent.
by montecarl 13y ago
Thats a pretty good way, but it's not dpi independent.
- dpark 13y agoThat's partially true. A CSS pixel isn't necessarily the same as a screen pixel. A Mac with a retina display set to "native" resolution, for example, should actually make that 1200 pixels wide (max). In general, though, I think most browsers will treat a css pixel as a screen pixel. Of course you could also use points or ems if you prefer.