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


Tova Wahlin
Tova Wahlin
5,005 Points

I get a smal smal space between doughnuts and tea, it disappears if I set the margin to "margin: -4px;" . why is this?

When I use margin-right: 4px; theres still space between doughnuts and tea. I tried finding some extra space in my html but can't see anything. When looking in the inspector tool it looks like its the list item that still has some extra margin or that the doughnut list item isnt covering the full parent element. Any clue my this happens?

1 Answer

Hi Tova

The white space between the list items is just what happens when you have them displayed as inline-block. One way to get rid of the spaces is to set the ul font-size to 0.