How to change default padding for cell/td in cell table

68 views
Skip to first unread message

Thomas Trebbien Pedersen

unread,
Oct 11, 2011, 6:21:38 AM10/11/11
to Google Web Toolkit
Hi,

Can anyone help me how to change the default padding for cell/td in
cell table.

I have found out that GWT by default adds this css class:

.GALD-WOHC {
padding-bottom: 2px;
padding-left: 15px;
padding-right: 15px;
overflow: hidden;
padding-top: 2px;
}

How do I change/override the padding? I think 15px for the left/right
padding is to much and would like 2px instead.

Thanks.

\Thomas

Thomas Trebbien Pedersen

unread,
Oct 11, 2011, 10:51:24 AM10/11/11
to Google Web Toolkit
Found out it's possible to override the GWT styling by putting this in
my css file:

th.GALD-WOOC {
padding-left: 2px;
padding-right: 2px;
}

td.GALD-WOHC {
padding-left: 2px;
padding-right: 2px;
}

Are there other ways of doing this?

\Thomas

On 11 Okt., 12:21, Thomas Trebbien Pedersen

Jeff Larsen

unread,
Oct 11, 2011, 11:10:37 AM10/11/11
to google-we...@googlegroups.com
yea, you extend the CellTable.BasicResources class, override 


    @Override
    @Source(BasicStyle.DEFAULT_CSS)
    BasicStyle cellTableStyle();

and point to your own css file. 
Reply all
Reply to author
Forward
0 new messages