문제

I got this tiny code:

<i class="icon-plus-sign">Hello</i>

I can't set the font-awesome icon on the right. I tried to change the float, padding, margin, but all to no avail.

In other words, here's what I have:

what I have

Here's what I want:

what I want

FIDDLE: http://jsfiddle.net/UF9A3/

도움이 되었습니까?

해결책

Don't wrap your text inside the icon markup. Use:

Hello <i class="icon-plus-sign"></i>

or

<i class="icon-plus-sign"></i> Hello

다른 팁

You can also change the position of the icon:

background:(url(../img/dash.png) 0 right no-repeat);

use this

<i class="icon-plus-sign"></i> hello

another u can use this

<i class="icon-plus-sign">Hello</i>
change the position in css
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top