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 trialsebbe12
4,015 Pointspadding-left: 1em; padding-right: 1em; Shouldn't they take themselves out and therefore result in nothing
https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left Playing around with the examples I came to the result that padding-left= dragging the text to the left and therefore nothing should happend if u add padding-left: 1em; and padding-right: 1em; What am i thinking wrong?
1 Answer
furkan
11,733 PointsPadding refers to the spacing inside your element or content. The spacing is spread evenly in this case on left and right sides of your content, thus, there is still spacing or padding applied. It does not equal to nothing. In fact, you now have a total of 2em padding if you add those up.