Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Customizing Colors and Fonts Pick Fonts and Set Relative Units

Teacher Russell
Teacher Russell
16,873 Points

margin top?

I was just wondering exactly why did you choose to add the 15px margin to the top of the h1 element? I still have some trouble seeing the significance of margin and padding sometimes.

1 Answer

Kyle Johnson
Kyle Johnson
33,527 Points

Hi!

I found this solution to a similar post.

Margin vs. padding

Teacher Russell
Teacher Russell
16,873 Points

You were my only response. It led to some good places...lots of info. Should help. Thanks!