How to center the whole page (not the content inside a panel)?

4 views
Skip to first unread message

Yossi

unread,
Dec 27, 2008, 1:12:50 AM12/27/08
to Google Web Toolkit
Hi,

I try to build a page that will contain a dock panel - using this
panel it is very easy to maintain the page layout.

But I want that the "root" dock panel will be centered in the page and
not aligned to the left.

Can someone please help?

Thanks,
Yossi

Adam J

unread,
Jan 5, 2009, 5:37:52 PM1/5/09
to Google Web Toolkit
On Dec 27 2008, 7:12 am, Yossi <ykah...@gmail.com> wrote:
> Hi,
>
> I try to build a page that will contain a dock panel - using this
> panel it is very easy to maintain the page layout.
>
> But I want that the "root" dock panel will be centered in the page and
> not aligned to the left.

In Java specify style name for this DockPanel:

DockPanel rootPanel;
rootPanel.addStyleName("rootPanel");

and in css add:

.rootPanel {
margin-left: auto;
margin-right: auto;
}

Reply all
Reply to author
Forward
0 new messages