Hi! I have trouble getting my root panel centered in the host page. I´ve looked at the posts here and tried things like
CSS body { margin: 0 auto 0 auto; padding: 0; width: 792px; } But my page is still not centered vertically, only horizontally. Posting my onModuleLoad() below public void onModuleLoad() { HandlerManager eventBus = new HandlerManager(null); TimeServiceAsync timeService = GWT.create(TimeService.class); AppData appData = new AppData(); TimeWidget timeWidget = new TimeWidget(); TimePresenter timePresenter = new TimePresenter(timeWidget, appData, timeService, eventBus); TabPanel basePanel = new TabPanel(); basePanel.setWidth("500px"); basePanel.setAnimationEnabled(true); basePanel.add(timeWidget,"Current time"); basePanel.add(new WelcomeWidget(),"About"); basePanel.add(new LinkWidget(), "Some GWT links"); basePanel.add(new ContactWidget(),"Contact"); basePanel.selectTab(0); RootPanel.get("simpleContainer").add(basePanel); } --~--~---------~--~----~------------~-------~--~----~ 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-Toolkit@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 -~----------~----~----~----~------~----~------~--~---