CSS "line-height" property can be used to vertically align. ex: .gwtLabel{ border: 1px solid red; font-size: 13px; height: 300px; line-height: 300px; text-align: center; background-color: lavender; }
-Kalpana On Thu, Sep 8, 2011 at 5:59 PM, Sudhakar Abraham <s.abra...@datastoregwt.com > wrote: > To adjust the properties "padding-top","padding-bottom","padding- > right","padding-left" in Style Sheet, please see the following code. > > .gwt-Label-1 > { > border: 1px solid; > font-size: 13px; > padding-left:5px; > padding-right:5px; > padding-bottom:5px; > padding-top:5px; > background-color: lavender; > } > > S. Abraham > www.DataStoreGwt.com > > On Sep 8, 3:33 pm, ph09 <ph.hei...@googlemail.com> wrote: > > Hello, > > > > I try to centering text in a Label with following CSS: > > .gwt-Label-1 { > > border: 1px solid; > > font-size: 13px; > > vertical-align: middle; > > text-align: center; > > background-color: lavender; > > > > } > > > > It works all except of "vertical-align: middle". The text is always at > > the top of the Label. > > Does anyone know why? > > -- > 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. > > -- 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.