How do skins handle a paragraph tag when using Form Decorator?

3 posts, 1 answers
  1. Robert
    Robert avatar
    58 posts
    Member since:
    Dec 2008

    Posted 14 Mar 2009 Link to this post


    I'm new to the Telerik tools and I apologize if this question sounds trivial.

    We're building an application that will use many of the Radtools and I'm trying to understand how tags (for example a simple paragraph tag) is governed by the skin.  For example, if I'm building a form that is using the Form Decorator and I include a string of text as such:

    <p>This is a text message..."</p>

    Is there a specific style for the paragraph tag included in each skin?  Or, would i be setting up a 2nd style sheet for items that are not directly controlled by a Telerik tool?  I'm assuming that if the paragraph tag is inside the form tag that I could simply edit the style sheet associated with the skin we'e using to either include a paragraph tag in the cascade or if the style already exists all I need to do is simply edit it to my liking.

    The only problem I can see going forward is that we want to provide the user the ability to change or even edit their own skins.  As far as editing goes, they're more or less on their own but I want to be sure that if they choose a new skin the specific style I added won't mess up the design as a result because I customized the default skin to include a new style.  Maybe I just answered my own question, I suppose I would have to make sure that if I were were to provide additional skins for the user to select that I replicate any specific changes to the style sheet in the other skins as well.

    Am I on the right track with this or is there something more simple that I'm missing?

    Thank you,

  2. Answer
    Dimo avatar
    8406 posts

    Posted 16 Mar 2009 Link to this post

    Hi Robert,

    RadFormDecorator does not style paragraph elements, they are out of the control's scope. So styling of <p>'s is carried out by the browser completely according to your preference.

    If you want to decorate some text elements with RadFormDecorator automatically, you can use <label>, <h4>, <h5> or <h6> tags, however, this may be incorrect from HTML semantics point of view.

    Currently RadFormDecorator may be set to style the following elements:

    radio buttons
    labels (<label> elements - asp:Labels with AssosiatedControlID set)
    any container (only background color is applied from the skin)

    Let us know if you need more information.

    All the best,
    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. Robert
    Robert avatar
    58 posts
    Member since:
    Dec 2008

    Posted 17 Mar 2009 Link to this post

    Cool, thanks.  That should do it.

Back to Top