Using jQuery UI Icons I just want to display the icon according to the rest ("just show the icon, no line breaks, etc.). Basically, I want to get a row of clickable images while I use jQuery UI themes for my page .
Here are some things I've tried:
1: <div style="display:inline-block;width:20px;height:20px" class="ui-icon ui-icon-trash"/> 2: <input type="image" onclick=".." class="ui-icon ui-icon-search" alt="Look up" title="Look up (to address)" value="Reverse Lookup" />
1: completely ruin the layout. 2: gives my extra line break around the image
- as a request for a wider context -
<tr class="ui-widget-content"> <td>...</td> <td> <input name="xy" id="xy" type="text" size="5" /> <input name="xz" id="xz" type="text" size="5" /> <input type="image" onclick="...;" class="ui-icon ui-icon-search" alt="Look up" title="Look up (to address)" value="Reverse Lookup" /> </td> </tr>
- span -
Using span leads to the same thing as above, the icon is displayed, but in its own line.
<span class="ui-icon ui-icon-carat-1-n"></span>

source share