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


Styling Content -> Finishing the CSS

At the very end of the video(Finishing the CSS): margin and padding was for used on the copyright line.

1) Would the webpage look the exact same if padding was not used?

1b) If not, could we get the same result using a larger margin (without padding)?

2) I can understand using padding on something that is clickable or has a background. But why was padding used in this case?


1 Answer

Nick Pettit
Nick Pettit
Treehouse Teacher

Hi Joe,

Sorry for the slow reply! I've been on vacation for the last week or so. :)

I checked out the code in question on CodePen. You're correct, the padding really should have just been all margin. I'm not quite sure why that decision was made at the time; there was probably a good reason or some other intention, but then things changed, and the padding stayed. I'm just guessing, but that's probably what happened here.

Those types of things happen a lot in web development: You add something, then you make a change to support that addition, but then you remove the addition and forget to undo the other thing you changed. Fortunately in this case, it doesn't impact the functionality or visual display of the page in any meaningful ways.