This is a migrated thread and some comments may be shown as answers.

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

2 Answers 848 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Paul Buxton
Top achievements
Rank 1
Paul Buxton asked on 29 Jul 2009, 10:15 AM
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 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 30 Jul 2009, 08:56 AM
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.
0
Prasad
Top achievements
Rank 1
answered on 29 Dec 2009, 06:20 AM
Thanks :)
Tags
ToolBar
Asked by
Paul Buxton
Top achievements
Rank 1
Answers by
Yana
Telerik team
Prasad
Top achievements
Rank 1
Share this question
or