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

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

2 Answers 33 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 14 Mar 2009, 10:43 AM
Hello,

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,
Bob

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 16 Mar 2009, 11:44 AM
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:

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


Let us know if you need more information.

All the best,
Dimo
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
Robert
Top achievements
Rank 1
answered on 17 Mar 2009, 12:40 PM
Cool, thanks.  That should do it.

Bob
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Robert
Top achievements
Rank 1
Share this question
or