I have the following in my html:
<div id="flash_message" class="ui-state-highlight ui-helper-hidden">
<p>
<span id="flash_message_content">Hey, Sailor!</span>
<span id="flash_message_button" class="ui-icon ui-icon-circle-minus"></span>
</p>
</div>
The classes are from JQuery UI. My goal is to display the message (in this case, "Hey, Sailor!") and then, immediately next to it, the circle-minus icon. I then bind a handler to the icon; that handler lets the user hide the message.
This all works fine, except that the span flash_message_button is displayed as a block. The icon appears on the next line from the message, not next to it. If I include an inline style command "display: inline" the icon disappears completely (it's still in the DOM, but is rendered 0px by 0px).
What change should I make to force the icon to display right next to the message?