Are rems replacing ems in CSS?

Posted by Kevin on Stack Overflow See other posts from Stack Overflow or by Kevin
Published on 2011-11-11T22:53:05Z Indexed on 2011/11/12 1:50 UTC
Read the original article Hit count: 304

Filed under:
|

I was reading about rem units in CSS3, and was a little confused. If you use rem, do you still use em or does that replace it?

For example:

.selector {
    margin-bottom:24px;
    margin-bottom:2.4rem;
    font-size:16px;
    font-size:1.6rem;
}

or

.selector {
    margin-bottom:24px;
    margin-bottom:2.4em;
    margin-bottom:2.4rem;
}

Just trying to figure out if rem takes the place of em, or if it's just another unit.

© Stack Overflow or respective owner

Related posts about css

Related posts about css3