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.


List gets messed up when using bootstrap icons

I have a problem with the second row text indent after I use an icon with a list element. The second row should verticly align with the first word of the first row...

Any idea any body:

http://www.bootply.com/208dQfndmN (must be viewed in browser mode)

thanks in advance for any help

1 Answer

Do not put text in the span for icons.

<li><span class="glyphicon glyphicon-ok"></span> Versandkostenfrei</li>

that has no influence. still doesn't work:


that's because you did it wrong. you put the icon class in the <li> tag. Look at my example, I have a span tag, but the text is to the right of it and both the span and the text are in the <li> tag.