Ashley Cameron Design

Ashley Cameron Design

Shop the Creative Design Market

Good morning

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

"Every great design begins with an even better story."

Lorinda Mamo, designer


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