Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery ui icon not working on inline span

Tags:

jquery-ui

As you can see here: http://jsfiddle.net/kralco626/3BYDu/

The icon does not show up when you use display:inline

How do I get around this?

like image 683
kralco626 Avatar asked May 30 '11 22:05

kralco626


3 Answers

Useui-icon, before of the ui-icon-ICON and use the CSS display:inline-block should work properly

<span class="ui-icon ui-icon-home" style="display: inline-block"/>
like image 188
Hugo Prudente Avatar answered Nov 08 '22 06:11

Hugo Prudente


<table>
    <thead>
        <th>
            <div style="float:left">My Header</div>
            <div style="float:left" class="ui-icon ui-icon-triangle-1-n"></div>
        </th>
    </thead>
</table>

Edit for formatting.

like image 5
Vinnyq12 Avatar answered Nov 08 '22 06:11

Vinnyq12


Well, I guess you could try inline-block instead of inline.

like image 4
Yiangos Avatar answered Nov 08 '22 04:11

Yiangos