I am trying to set a cellpadding value for my vertical panel. There is an API to set cellspacing (CellPanel.setSpacing()) but none for setting the cellpadding.
How do I go about doing this?
I did it like this:
myVerticalPanel.getElement().setAttribute("cellpadding", "5");
Carnell's answer does not work for IE7 and earlier versions.
You should use css to do this. Refer to the dev guide. Basically you want to set a style name on the panel using one of the setStyle* methods. Once you do this you use css to apply the styles for the particular name.