Welcome to the Treehouse Community
Looking to learn something new?
Grace kim499 Points
why h1 is set to margin-top 0 separately but h2 and h3 are given margin-top 0 at the top in base element styles??
Is there any specific reason that the margin-top of h2 and h3 are set to 0 at the top but h1 is not included here. Is there any benefit by setting h1 margin-top to zero later?
Steven Parker216,083 Points
At about 1:30 in the video, all of the h1 margins are set to 0 in the "
.name" rule, along with the font size. There would be no value in setting just the top margin later, unless you wanted a setting other than 0.
Doing this separately allows only the top margin to be set on the other elements, and also prevents them from being affected by the font size setting.