P
Prakhar Nagpal• 60
@slightlybelowzen
Posted
- The
<h2>
element hasn't been sized correctly. The design spec uses22px
to style it, and since no size has been specified in the css, it defaults to the browser default of1.5em
which is24px
assuming a base font size of16px
(also since the base font size hasn't been set in the css for thebody
element. - It's a good idea to apply a reset of
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
so you don't have default margins of elements messing with spacing and padding of elements.
Marked as helpful
2