:: Forum >>

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?
Wednesday, February 22, 2006
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)
Wednesday, February 22, 2006
Good to know. Thanks for the quick response.
Puzzled?
Thursday, February 23, 2006
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)

/javascript.forum.15394.1/help-change-button-background-image.html
LinuxFreakus
Saturday, July 29, 2006

This topic is archived.


Back to support forum

Forum search