asp:CheckBox text in ItemTemplate doesn't align center vertically

3 posts, 0 answers
  1. Paul Buxton
    Paul Buxton avatar
    39 posts
    Member since:
    Jan 2007

    Posted 29 Jul 2009 Link to this post

    Hi,

    I have a simple checkbox in my RadToolbar in an item template.  The checkbox square appears aligned vertically correctly, but the associated Checkbox text appears to be lower.

    Is there some stylesheet seeting i need to apply to this?

    Its the 2008 Q3 SP1 version, applicable to both FF3.5 and IE8.  Other browsers and versions untested.


    Paul.

  2. Yana
    Admin
    Yana avatar
    4364 posts
    Member since:
    Sep 2012

    Posted 30 Jul 2009 Link to this post

    Hi Paul,

    I suggest you set CssClass property of the checkbox like this:

    <telerik:RadToolBar ID="RadToolBar1" runat="server"
                <Items> 
                       <telerik:RadToolBarButton Text="test"
                        <ItemTemplate> 
                            <asp:CheckBox ID="CheckBox1" runat="server" Text="checkbox test" CssClass="checkB" /> 
                        </ItemTemplate> 
                       </telerik:RadToolBarButton> 
                </Items> 
            </telerik:RadToolBar>  

    and add the following styles to your page:

    <style type="text/css"
        .checkB label{ 
            positionrelative
            top: -2px
        } 
    </style> 


    Kind regards,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

  3. DevCraft Release
  4. Prasad
    Prasad avatar
    2 posts
    Member since:
    Nov 2008

    Posted 29 Dec 2009 Link to this post

    Thanks :)

Back to Top