I am trying to create a jQuery user interface button with a user icon at the top of the text. The default behavior creates an icon to the left / right of the text, but I want the icon to be on top! It can be done? If so, your help / guidance is appreciated.
In addition, how can I create a custom 32x32 icon (even increasing the height of the button did not help and deprived the icon). Thanks in advance.
HTML:
<button id="btnSave">Save</button>
JS:
$('#btnSave').button({
icons: {primary: "saveIcon"}
});
CSS
.saveIcon {
background-image: url(../images/Save.png) !important;
}
source
share