REM Sass Mixin With Pixel Fallback

Paulund is full of premium tutorials and support to help with your development

Sign up to get full access to all tutorials.

Get Started

Login to your account

Sass Logo

The REM CSS unit is similar to the EM CSS unit except it allows you to size elements relative to the root of the HTML tag, as it stands for Root EM. The EM unit is relative to the font-size of the parent, which can cause problems in working out the correct size to use in descendent elements. Because the REM is relative to the root we can set the default font-size in the HTML tag which allows us to easily . . .

Get Started