Widgets in GWT are essentially elements in the DOM tree of a web document. GWT widgets enable convenient control over these elements. For instance, a call of the widget method setSize(String width, String height) will set the dimensions of the HTML element underlying the widgets. Values to define the size can be anything allowed in HTML and CSS.
Possible values are:
However, using convenience methods such as Widget.setSize() mindlessly can easily lead to serious bugs.
“How-to inherit CSS width attributes for Internet Explorer“, Kevin Deldycke’s blog
“IE7 CSS inherit problem“, stackoverflow.com