jQueryUI widget text plus icon
I have:
<div class="ui-widget">
<div class="ui-widget-header">
My Menu<span class="ui-icon ui-icon-circle-triangle-n"></span>
<开发者_运维问答/div>
<ul class="ui-widget-content">
<li>Menu Item 1</li>
<li>Menu Item 2</li>
<li>Menu Item 3</li>
</ul>
</div>
Right now, the ui-icon is appearing below "My Menu"
Q: How can I get "My Menu" to appear on the same line as the UI widget?
add the style "display: inline-block;" to ui-icon, or wrap My Menu in a span and use floats
精彩评论