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 trialBenjamin Hedgepeth
5,672 PointsMargin in gallery list (images)
I need some clarification regarding the margin property when applied to an unordered list item. What is it's role in the declaration block? Padding removes the padding prior to the bullet point. List-style removes the actual bullet point. How does margin impact each list item?
1 Answer
Rasbin Rijal
Courses Plus Student 10,864 PointsHi Benjamin, the CSS margin properties are used to generate space around elements.
The margin properties set the size of the white space OUTSIDE the border.
Hope this helps. :)