Ashley Cameron Design

Ashley Cameron Design

Shop the Creative Design Market

Goodnight

Set body font-size to 62.5% for Easier em Conversion

This post was last updated: Sep 3, 2020
CSSSnippets

About a 1 minute read

"Individually, we are one drop. Together, we are an ocean."

Ryunosuke Satoro


1
2
3
4
5
6
body {
  font-size: 62.5%; /* font-size 1em = 10px */
}
p {
  font-size: 1.2em; /* 1.2em = 12px */
}