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 CSS: Cascading Style Sheets Take a Mobile-First Approach

I just didn't got, why we use margin? what is the purpose?

I just didn't got, why we use margin? what is the purpose? because i set it to 0 and then set it to 100 and there was no changes. Thanks for help.

3 Answers

Do you mean "why using generally margins in css"? Or in this video?

Margin is applied to elements for the purpose of adding space in between them.

I am a little confused myself. We add a margin of 0 to the logo element but after refreshing the page you see no changes being made. What was the purpose of adding a margin of 0 in the first place?