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

How to Change font family to the RadTextbox as default

3 Answers 478 Views
Input
This is a migrated thread and some comments may be shown as answers.
Vishnu
Top achievements
Rank 1
Vishnu asked on 28 Aug 2013, 01:52 PM
Hi i want to change RadTextbox's font-family as Verdana.

I done this to combobox item by applying css like below which can change font of combo items.
.rcbItem
{
font-family:Verdana !important;
}

like this way i want to apply to radtextbox. i don't want to change / set attribute for each radtextbox in a page where more than 20 radtextboxes are there.

Please help me out.

3 Answers, 1 is accepted

Sort by
0
Accepted
A2H
Top achievements
Rank 1
answered on 29 Aug 2013, 02:17 AM
Hi,
Please use the below css to change the font style of RadTextbox
<style type="text/css">
       .riTextBox
       {
           font-family: Verdana !important;
       }
   </style>


As an alternative approach you can use the properties of textbox
<telerik:RadTextBox ID="RadTextBox1" runat="server" Skin="Hay" Width="300" AutoPostBack="false" Font-Names="Verdana">
       </telerik:RadTextBox>
0
Vishnu
Top achievements
Rank 1
answered on 29 Aug 2013, 01:56 PM
Hi A2H,
its working fine. Thanks a lot. you saved my lot of time. 
Can you please tell me, how to apply the same trick to Button as well.

0
Accepted
Shinu
Top achievements
Rank 2
answered on 29 Aug 2013, 02:35 PM
Hi Vishnu,

Try overriding the default CSS as follows.

CSS:
<style type="text/css">
    .RadButton_Default .rbDecorated
    {
        font-family: Arial Black !important;
    }
</style>

Thanks,
Shinu.
Tags
Input
Asked by
Vishnu
Top achievements
Rank 1
Answers by
A2H
Top achievements
Rank 1
Vishnu
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or