em과 rem

BakJiYeon·2022년 5월 3일
0

rem

rem은 html(root)의 font-size를 1rem으로 두고 비율로 사용하게 된다.

em

em은 해당 context의 font-size를 1em으로 두고 비율로 사용하게 된다.
em을 사용한 property가 font가 아닌 height나 다른 속성이더라도 font-size의 비율에 비례한다.

profile
no tomorrow without joy

0개의 댓글

관련 채용 정보

Powered by GraphCDN, the GraphQL CDN