On Jul 25, 2014, at 6:24 AM, Philippe Wittenbergh <[email protected]> wrote:
> > Le 25 juil. 2014 à 20:06, Karl DeSaulniers <[email protected]> a écrit : > >> Just made reference real quick to rems being the one based on the body only. > > No. > rems are not – repeat not – based on the font-size on body! They are based on > the font-size of the root element, as I note earlier in this thread. The root > element in your html document is <html>. > > Try this: > <!doctype html> > <style> > body { font-size: .8em; } > p.a { font-size: 1em; color: red; } > p.b { font-size: 1rem; color: blue; } > </style> > > <p class="a"> test - font-size: 1em specified</p> > <p class="b"> test - font-size: 1rem specified</p> > > Philippe > -- > Philippe Wittenbergh Correct. I should have said root. Karl DeSaulniers Design Drumm http://designdrumm.com ______________________________________________________________________ css-discuss [[email protected]] 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/
