DEV Community

yeonseong
yeonseong

Posted on

em vs rem in css

em

1em = 10px * 1
the standard of em is the current element's font-size in using em

rem

1rem = 10px * 1
the standard of em is the root element's (<html>) font-size in using rem

Top comments (0)