title: How to center a gwt application in the middle of the page
body: <p>I am trying to center a gwt application in the middle of the page,I have tried the following.</p>
  
  <pre><code>public void onModuleLoad() {
              RootPanel rootPanel = RootPanel.get();
  
              Image image = new Image("images/board.png");
  
  
              FlowPanel fp = new FlowPanel();
  
              fp.add(image);
              fp.setStyleName("center");
              rootPanel.add(fp);
  
          }
  </code></pre>
  
  <p>I have a .center in my stylesheet within the gwt application that has the following.</p>
  
  <pre><code>.center{
      margin: 0px auto;
      width: 480px;
  }
  </code></pre>
  
  <p>But this seems not to work.</p>