3.2.0

Button with image without text

Please forgive my ignorance. I get padding on the right of the image. How can I fix this? Thanks in advance.

var obj = new AW.UI.Button;
obj.setId("myButton");
obj.setControlSize(25);
obj.setControlImage("favorites");
document.write(obj);
Puzzled?
February 22,
At this point you can't. Alex and I discussed this and there might be a future version of the button that has no text. Or you can break all the rest of your buttons and edit the CSS for all buttons to remove the padding on the text area.
Or you can create your own new button control.
Jim Hunter (www.FriendsOfAW.com)
February 22,
Good to know. Thanks for the quick response.
Puzzled?
February 23,
OR.....
You could also make a new CSS class and assign it to your button instead of the main button class without having to duplicate the entire object! You can do that by following pretty much the same method I figured out for my problem. In my case I only wanted to change the background image, but you could change more of the CSS and accomplish your goal as well I think (I haven't tried it though)

http://www.activewidgets.com/javascript.forum.15394.1/help-change-button-background-image.html
LinuxFreakus
July 29,

This topic is archived.

See also:


Back to support forum