CSS Trick 004 font-size

Alice Kim·2021년 3월 16일
0

CSS Trick

목록 보기
4/5
post-thumbnail

❓ rem을 직관적으로 계산할 수 있나요?

❗ 보통 16px이 기준인데, 기준이 10px이 되도록 html에서 font-size를 설정해주면 계산하기 쉬워진다.

  • 2rem = 20px, 1.8rem = 18px etc..
profile
If you don't build your dream, someone will hire you to help build theirs.

1개의 댓글

comment-user-thumbnail
2021년 3월 17일

rem쓰기가 난감했는데 정말 좋은 것 같아요!!!🙆‍♀️

답글 달기