[CLOSED] how to set lineheight to Label

  1. #1

    [CLOSED] how to set lineheight to Label

    <ext:Panel runat="server" Region="North" Title="north" Height="38" Header="false" Layout="HBoxLayout">
                        <Items>
                            <ext:Image runat="server" ImageUrl="~/images/logo.jpg" Width="215" Height="38">
                            </ext:Image>
                            <ext:Label runat="server" ID="l_weluser" Height="38"></ext:Label>
                        </Items>
    </ext:Panel>
    the image's height is 38, the label's height is 38, I want to set label'text valign center, how to do?
    thanks.
    Last edited by Daniil; May 09, 2013 at 3:58 AM. Reason: [CLOSED]
  2. #2
    Hello!

    It's already vertically aligned to the middle but you should set line-height:

    <ext:Label runat="server" ID="l_weluser" Height="38" Text="Some text" StyleSpec="line-height: 38px;"></ext:Label>

Similar Threads

  1. [CLOSED] [1.6] More label on CalendarView
    By John_Writers in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 15, 2013, 3:40 PM
  2. RTL Field label
    By azooz in forum 1.x Help
    Replies: 0
    Last Post: May 21, 2012, 11:57 AM
  3. How to center a label?
    By chearner in forum 1.x Help
    Replies: 6
    Last Post: Dec 28, 2011, 4:21 AM
  4. [CLOSED] Label Style / Obtain label color based on theme
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Apr 15, 2010, 10:35 AM
  5. How to set style of label?
    By dbassett74 in forum 1.x Help
    Replies: 2
    Last Post: May 07, 2009, 6:36 PM

Posting Permissions