Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


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.