That is kind of a tricky question to answer, as it kind of depends on
how you want to do your whole page.

The URL I posted above has interactive demos to show you how each of
them work, so you should be able to get a good idea of which one fits
your situation best.  Just play with them until you get a good feel
for how they should work.

Also, you needn't only use a VerticalPanel.  Any table based panel
would work.  VerticalPanel is just the simplest, since it only allows
a single column.

-Ben

On Dec 22, 9:37 am, Magnus <[email protected]> wrote:
> Hi,
>
> I migrated my app to strict mode, i. e. not using quirks mode panels
> like VerticalPanel.
>
> Thank you for the second recommendation. I am not used to work with
> CSS in detail. Which property should I use to position my anchors?
>
> Thanks
> Magnus
>
> On Dec 22, 4:12 pm, Ben Imp <[email protected]> wrote:
>
> > There are many ways of laying out a web page.  The simplest in your
> > case might be to add both widgets to a VerticalPanel that then lives
> > inside of that FlowPanel you mention.  You could then use CSS and make
> > the VerticalPanel have little to no space between its cells.
>
> > Another, and perhaps a more correct, way would be to give both of
> > those elements ids or distinct CSS classes and then use CSS
> > positioning.
>
> >http://www.w3schools.com/css/css_positioning.asp
>
> > -Ben
>
> > On Dec 22, 8:25 am, Magnus <[email protected]> wrote:
>
> > > Hi,
>
> > > I have two Anchor objects, an image and a label, and I would like to
> > > put the label below the image.
>
> > > The only way I know is to put a BR tag between them:
>
> > >      add (new HTML ("<br>"));
>
> > > But this results in to much vertical space, which I do not want.
> > > I also tried "<p>".
>
> > > How can I put a newline without vertical space?
>
> > > The two Anchor objects live in a FlowPanel.
>
> > > Thanks
> > > Magnus

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

Reply via email to