Is there a typo?
"top:50%;margin:top:-300px;"
Do you mean "margin-top"?

I don't understand it. What's the effect of this?

Magnus

On Jun 8, 7:25 pm, Ian Bambury <ianbamb...@gmail.com> wrote:
> I'm sure someone will correct me if I'm wrong, but layout panels are more
> for using the whole of an area of the screen - header, footer, menu on the
> left, all the rest used for page display, that kind of thing rather than
> allowing you to float things at various places on the screen.
>
> For that, it seems to work OK in my limited experience.
>
> You can use 'margin:0 auto;' to centre the inner panel horizontally, listen
> for resize events, and just set 'top' to half of what is left of the height
> after you take away the height of the inner panel.
>
> If you don't want to do that (and don't care what happens if the window is
> smaller than the inner panel) then you can use 'top:50%;margin:top:-300px;'
> (changing '-300px' to half the height of inner panel + border). It's an old
> hack, but it still works.
>
> Ian

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to