Frage

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/

War es hilfreich?

Lösung

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

Andere Tipps

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
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top