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 trialnabilmakhout
18,082 PointsWhy is padding being added outside the wrapper?
I thought the padding would only add space inwards and not between the wrapper and the browser window.
The definition that is below the video for padding is:
padding - Sets the space on the interior four sides of an element. Accepts any CSS length unit.
So I don't really understand how come it added space on the outside (I thought this was the margin). I'm confused now. Can someone please explain me what's happening here?
1 Answer
Maciej Czuchnowski
36,441 PointsAre you sure you added it to the proper element?
nabilmakhout
18,082 Pointsnabilmakhout
18,082 PointsI didn't add anything I'm just watching the video's - when he refreshed the page he said he have outer and inner space.
Edit: ooh never mind, he also had the margin property! So stupid of me. Thanks anyway