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

css does not apply for RadTextbox

4 Answers 129 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kishor
Top achievements
Rank 2
Kishor asked on 22 Jul 2013, 10:24 AM

hello 
I have used RadTextbox for which I have applied following css, But the css does not apply to RadTextbox
please help me to solve this problem
waiting for reply
Thanks
Kishor 

<style type="text/css">

      .Radtext

    {

         font-size:12px;

         font-family:Arial, Helvetica, sans-serif;

    }

</style>


<telerik:RadTextBox ID="txtCustomerNo" runat="server"   CssClass ="Radtext"  Skin="Windows7"  >

</telerik:RadTextBox>

4 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 25 Jul 2013, 07:18 AM
Hello Sawan,

You will need to use the !important property to achieve the requested appearance:
.Radtext
{
    font-size: 12px !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

Alternatively, you can use the following properties:
<telerik:RadTextBox ... Font-Size="22px" Font-Names="Arial, Helvetica, sans-serif">

In addition, you can check out the following topic:
http://www.telerik.com/help/aspnet-ajax/input-css-width.html

Hope this helps.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Kishor
Top achievements
Rank 2
answered on 25 Jul 2013, 09:05 AM
hello sir
following css works only if used as internal css on page

Internal CSS

<style type="text/css">

.Radtext

{

 

font-size: 12px !important;

font-family: Arial, Helvetica, sans-serif !important;

}

</style>

 
It does not works when used in external css(Style1.css)
   External CSS

  .Radtext { font-size :12px ; ! important font-family : Arial , Sans-Serif , Helvetica; ! important; }


please help


0
Eyup
Telerik team
answered on 30 Jul 2013, 07:55 AM
Hello Sawan,

Can you please place the !important property before the corresponding semicolon and let me know if it resolves the issue?

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Kishor
Top achievements
Rank 2
answered on 30 Jul 2013, 08:56 AM
thanks
 its working fine
Tags
Editor
Asked by
Kishor
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Kishor
Top achievements
Rank 2
Share this question
or