2013-01-14 23:18, Tom Livingston wrote:

I've been
looking into rem units and noticed that the only fallback i've seen written
about is px. Can you not fallback to em? The fallback is generally going to
be for IE < 9, and they can't resize things set in px, if need be, so will
em work instead?

You can use any unit in a fallback for rem. The reason why you don't often see em in that role is probably that if an author can figure out a suitable em fallback, he might just as well use simply em.

For example, if you have <body><div><p> and div { font-size: 2em } and you want to set the font size of p to 1.5 times the root em size, you can start from

p { font-size: 2rem; }

and then add the fallback

p { font-size: 0.75em; font-size: 2rem; }

But if you have done the calculations, you could simply use

p { font-size: 0.75em; }

Yucca

______________________________________________________________________
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/

Reply via email to