Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website Styling Web Pages and Navigation Build Navigation with Unordered Lists

Brady Borkowski
Brady Borkowski
7,495 Points

When removing the white space above the header, why did we do it in a new header rule rather than change the h1 rule?

I'm a bit confused considering we intentionally placed the 15px top margin under the h1 rules. Would it not be easier to change the h1 margin from "margin: 15px 0;" to "margin: 0;" rather than making an entire new rule for the header tag?

I remember noticing the white space and changing it on my own to see if it worked earlier (by editing the h1 rules), so I'm not sure what advantage this method provides. Is it better since it uses the entire heading tag? Or does it not really make a difference? It seemed to me that editing the h1 rule was faster and simpler than creating a 4 line rule for it.