Design Web Typography Final Project: Create a Typographic Site Getting Started: HTML and CSS

Pawel Ellwart
Pawel Ellwart
6,759 Points

Margin values in h2 and h3

Why margin in h2/h3 was set to 0.54em and .9em 0 .62em? I understand that the purpose is to fit the basehold but how the values were calculated? Based on what?

1 Answer

vincent batteast
vincent batteast
36,469 Points

https://www.w3schools.com/cssref/css_units.asp

you can read this but it is basic of the font size of the dom. so if you do this

body{ font-size: 16px }

it would be base of the 16px