tags:

views:

113

answers:

1

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?

A: 

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.

Carnell
cellpadding is a Element attribute not a style attribute.
Kasturi
http://stackoverflow.com/questions/339923/how-to-set-cellpadding-cellspacing-in-css has examples of setting things like th, td { padding: 0 } to accomplish this once you've applied a style as Carnell suggested.
aem