Hi i am working on gxt
I have an icon button.
I want to put the icon in the center.
Currently it looks like this.

the button icon is on the left (due to IconAlign.LEFT).
I want him in the center. But there is nothing like IconAlign.CENTER
If anyone has an idea what to add to the code. Please share
code
button.setIconAlign(IconAlign.LEFT); button.setIcon(Resources.INSTANCE.modify()); button.setStyleName("project-Button");
CSS
.project-Button { color: Black; border: thin outset #FF6600; font-family: Courier New, Century Gothic, Times New Roman, Verdana, Arial; vertical-align: middle; text-align: center; background-color: White; cursor: pointer; }
early
updated
public interface Resources extends ClientBundle { public Resources INSTANCE = GWT.create(Resources.class); @Source("Images/modify.png") ImageResource modify(); }
source share