Thursday, July 28, 2011

Layout and styling of HorizontalPanel/VerticalPanel

The "setStyleName" method sets the CSS class of the generated <table>
element. Is there any way I can set the CSS class of the generated
<td> elements within the <table>?

What I want to do is add spacing *between* HorizontalPanel/
VerticalPanel cells but not around the outer edge of the
HorizontalPanel/VerticalPanel itself. I don't believe you can do this
at the <table> level in HTML. BTW, the "setSpacing" method sets the
"cellspacing" attribute of the <table> element which doesn't produce
the result that I'm looking for.

Also, if I may ask, why does VerticalPanel use <table> rather than
<div>? It seems to be there should be a Panel layout class that
generates a sequence of <div> elements, which is a very common layout
approach in raw HTML.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment