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

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:

http://www.bootply.com/jLwh53hiv4

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.