Styling for Label Controls

2 posts, 0 answers
  1. Sathish
    Sathish avatar
    25 posts
    Member since:
    Dec 2008

    Posted 29 Jan 2009 Link to this post

    How do I make all the label controls in the page look like the text of a checkbox control. Currently a the checkbox gets styles (along with its text). I want the rest of labels in the page to have the same style as the text in the checkbox.

    How do I do that? Please help.

    Thank you.
  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 30 Jan 2009 Link to this post

    Hello Sathish,

    Are we talking about the asp:label control or the standard HTML label element? RadFormDecorator decorates the HTML label element only. Decoration of asp:label controls is currently not possible because they are rendered as <span> and there is no way for the RadFormDecorator control to distinguish them between other spans in the rendered HTML. If you are talking about asp:labels, you need to use custom CSS to change the control's look.

    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top