FlowPanel
and HTMLPanel
will both work, but it depends on the widget you feed into them. HTML
is a block level widget (root element is a <div>
); use an InlineHTML
instead (root element is a <span>
).
But for assembling pieces of HTML, better use a SafeHtmlBuilder
as Dvd Prd suggests; unless the pieces have to be dynamically updated later, but you can mix and match (use HTMLPanel.createUniqueId()
to create placeholders for the widgets).