jQuery UI Button - Text beneath the Custom Icon -
i trying create jquery ui button custom icon on top of text. default behavior creates icon on left/right of text want icon on top! can done? if so, help/guidance appreciated.
also, how can 1 have 32x32 size custom icon (even increasing height of button didn't , stripping icon). in advance.
html:
<button id="btnsave">save</button>
js:
$('#btnsave').button({ icons: {primary: "saveicon"} });
css:
.saveicon { background-image: url(../images/save.png) !important; }
try bit of css (demo):
.ui-button-icon-primary.ui-icon.saveicon { height: 32px; width: 32px; margin: 10px 0 2em -16px; text-align: center; left: 50%; top: 5px; background-image: url(../images/save.png) !important; } .ui-button-text-icon-primary .ui-button-text { display: block; position: static; padding: 50px 10px 5px 10px; }
Comments
Post a Comment