Align GridPanel in the center of the page

I have "played" with many properties of the GridPanal style but can't figure out how to align i so that it shows up in the center of the page -- just like HTML tables have align="center" property. I don't want to hard code pixels or absolute/relative position using %, but I just want GridPanel to be aligned at center of the page. Any suggestions?

Thanks

[370 byte] By [Sabira] at [2007-11-27 2:53:43]
# 1
check this thread http://forum.java.sun.com/thread.jspa?forumID=881&threadID=5052532
Rradhikaa at 2007-7-12 3:28:54 > top of Java-index,Development Tools,Java Tools...
# 2

Actually the suggestions in the above mentioned post didn't work, but the following did work on both IE and FireFox.

Add the following in CSS style:

margin-left: auto; margin-right: auto;

It will display the GridPanel (which is converted to HTML table) in the middle of the page (or container). However, VWP IDE does not show it in the middle though. Only at run time you will see it centered in the browser.

Sabira at 2007-7-12 3:28:54 > top of Java-index,Development Tools,Java Tools...