how to set the padding-left property of a specific column in a celltable?

45 views
Skip to first unread message

tong123123

unread,
Jun 11, 2012, 3:57:15 AM6/11/12
to google-we...@googlegroups.com
I try to use css
.iconColumn{
  padding-left:2px;
}

and then in gwt, write
Column.setCellStyleNames("iconColumn");

but I found no effect on the specific column left padding!!

tong123123

unread,
Jun 11, 2012, 5:38:20 AM6/11/12
to google-we...@googlegroups.com
the column is inside a table with css class name "ellipsis", so  I try to change
.ellipsis .iconColumn{
  padding-left:2px;
  padding-right:2px;

}

and then in gwt, write
Column.setCellStyleNames("
iconColumn");

very strange, padding-left is in effect now, but now padding -right!! in IE, if I press F12 and change the td padding-left property, the layout will change, but if I change the padding-right property, nothing changed!!


Andrei

unread,
Jun 11, 2012, 5:29:53 PM6/11/12
to Google Web Toolkit
Try

.iconColumn {
padding-left: 2px !important;
}
Reply all
Reply to author
Forward
0 new messages