The 'rem' unit in CSS - relative font sizes

preview_player
Показать описание
A follow up to my previous video on the "em" relative CSS unit, this one is going to be about it's useful counterpart, the "rem" unit. This unit is used to specify font sizes relative the root (HTML) font size.

This is especially useful for development, making it easy to change the font size of your entire website with a single code change.

Support me on Patreon:

For your reference, check this out:

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

So the difference between "'em" and "rem" is that "rem" is relative to the root (html), whereas "em" is relative to the parent?

jimh
Автор

how you added line between your heading and lists?

sparrowgaming
Автор

Hey dcode can you show how to make accordions using vanilla js

bikramchettri
welcome to shbcf.ru