The difference between EM, PX and REM

px:IEPX cannot be adjusted as unit font size.

It’s a pixel, a relative length unit, relative to the screen resolution of the display.

em:The font size of the text relative to the current object. 1em=16px;

rem:When the font size is large, although it is still relative size, it has relative HTML root elements.

Leave a Reply

Your email address will not be published. Required fields are marked *