View Single Post
Old 09-17-2014, 09:17 PM   #66
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by dgatwood View Post
I'm not sure I necessarily agree. There probably are some situations where positioning shouldn't depend on font size. If you can guarantee CSS3 support, viewport-relative units (vw/vh/vmin/vmax) are usually better choices than px, but if not, then px is the only real option left.

It is, however, critical for developers/designers to take the time to think about what they're trying to accomplish, to decide whether the size unit should depend on the font size or not, and to test on a wide range of screen sizes with a wide range of font magnification settings to make sure their decision really was the right one.
PX is perfect to avoid the shadow cast by the casing on the edge of the screen for example. 5 px margin works well in this case but for other uses it makes no sense.

Dale
DaleDe is offline   Reply With Quote