Hi,
I have a gwtext Panel and I have set its layout as Horizontal Layout.
I have added a Label to this panel. Now i want the label to appear in
the center of the panel. I tried with text-align:center but it puts
the label as top-center. What I really want is middle-center position.
I also tried with vertical-align:middle. But it also did not work out.
The following my code snippet :

Label label = new Label("Welcome");
label.setStyleName("htmlStyle");

Panel leftPanel = new Panel();
leftPanel.setBorder(true);
leftPanel.setWidth(Window.getClientWidth() - 375);
leftPanel.setHeight(Window.getClientHeight());
leftPanel.setMonitorResize(true);
leftPanel.add(label);
leftPanel.setStyleName("leftPanelStyle");

CSS

.htmlStyle{
        font-family:Calibri;
        font-weight:normal;
        font-size:20pt;
        color:#000000;
}

.leftPanelStyle {
        text-align:center !important;
        vertical-align:middle !important;
}

It would be of great help if someone can please help me resolve this
issue. Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to