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

CSS CSS Foundations Text, Fonts, and Lists List Styles

andy min
andy min
4,160 Points

Add a bottom margin of 20px to the list items.

margin-bottom:20px;

isn't that the right code? it keep giving me a wrong message, but i don't know. plz check and reply

thanks!

3 Answers

Samuel Webb
Samuel Webb
25,370 Points

Did you actually select the list element with the "li" selector? Here's what that code would look like:

li {
    margin-bottom: 20px;
}
andy min
andy min
4,160 Points

Thank you Samuel!

I just did solve the problem thank to u!