On Saturday, April 19, 2014 01:27:12 PM Tim Dawson wrote: > > I'm tempted to leave margins, padding etc. in headings as pixels and just > change them in the media query if they become unworkable. Particularly when > it comes to small spaces (1-10 pixels, say) it seems very fiddly to deal > with several decimal places of ems (which probably convert to sub-pixel > dimensions). > > What do others do ?
This is a terrific use for "rem." ems are always the font size, so as the font size increases, so does the size of an em. However, a rem is the font-size on the root element (<html>), which means that it doesn't change size throughout the page. ---Tim ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/