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

Form decorator Issue

2 Answers 62 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Gokul Gokul
Top achievements
Rank 2
Gokul Gokul asked on 30 Jul 2010, 04:59 AM
I'm using same font names for my web pages, but the font names was not changing for decorated controls. How to change it?

2 Answers, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 30 Jul 2010, 11:45 AM
Hello Gokul,

To set a font name different than those used in RadFromDecorator, you should use the following CSS code in the head section of your document:

<style type="text/css">
.RadForm.rfdTextbox input[type="text"],
.RadForm.rfdTextbox input[type="password"],
.RadForm.rfdTextarea textarea,
.RadForm.rfdTextarea textarea[disabled]:hover,
.RadForm.rfdTextbox input[disabled][type="text"]:hover,
.RadForm.rfdTextbox input[disabled][type="password"]:hover,
.RadForm .rfdCheckboxChecked,
.RadForm .rfdInputDisabled.rfdCheckboxChecked:hover
.RadForm .rfdCheckboxUnchecked,
.RadForm .rfdInputDisabled.rfdCheckboxUnchecked:hover,
.RadForm.rfdLabel label,
.RadForm .rfdRadioUnchecked,
.RadForm .rfdInputDisabled.rfdRadioUnchecked:hover,
.RadForm .rfdRadioUnchecked:hover,
.RadForm .rfdRadioChecked,
.RadForm .rfdInputDisabled.rfdRadioChecked:hover,
.RadForm .rfdRadioChecked:hover
{
    font-family: "Trebuchet MS", "Lucida Grande", serif !important; /* replace it with font on your choice */
}
</style>

Please, note the !important rule is used. It will prevent the fonts to be overwritten by the base style sheet rules.

Telerik RadControls load firstly the CSS from the head section, next the skin specific styles and lastly the base stylesheet. If you have something in the head section, that you want to overwrite styles from the skin specific or base style sheet, you should use heavier selectors.

Best wishes,
Bojo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Gokul Gokul
Top achievements
Rank 2
answered on 30 Jul 2010, 01:50 PM
Thanx Bojo.
Tags
FormDecorator
Asked by
Gokul Gokul
Top achievements
Rank 2
Answers by
Bozhidar
Telerik team
Gokul Gokul
Top achievements
Rank 2
Share this question
or