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

[Solved] RadTextbox and Input.css don't work together

6 Answers 170 Views
Input
This is a migrated thread and some comments may be shown as answers.
Pepito
Top achievements
Rank 1
Pepito asked on 09 May 2008, 11:42 AM
Hi Telerik:

I am modifying Skin  Web20 for RadTextbox ( I have done all the steps ), basically  I want only to use Verdana font, but the changes aren't done.


.radInput_Web20

{

font:12px Verdana ;

vertical-align:middle;

}



Can you try it ?

6 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 09 May 2008, 12:02 PM
Hello Pepito,

If you want to set font styles to the RadInput textbox, you need to use a CSS rule, which will select the textbox itself, not the control's wrapper. This is because form elements do not inherit font styles from their parents.

In other words, please try :

.radEnabledCss_Web20,
.radEmptyMessageCss_Web20,
.radHoverCss_Web20,
.radFocusedCss_Web20,
.radReadOnlyCss_Web20,
.radDisabledCss_Web20,
.radNegativeCss_Web20,
.radInvalidCss_Web20

{

   font:12px Verdana;

}


Let us know if you need more information.


Greetings,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Pepito
Top achievements
Rank 1
answered on 09 May 2008, 01:29 PM
I have tried , and it's not working.

Is it working for you ?

/*textbox states*/

.radEnabledCss_Web20

,

.radEmptyMessageCss_Web20

,

.radHoverCss_Web20

,

.radFocusedCss_Web20

,

.radReadOnlyCss_Web20

,

.radDisabledCss_Web20

,

.radNegativeCss_Web20

,

.radInvalidCss_Web20

{

border:1px solid #6788be;

border-bottom-width:2px;

padding:2px 0 2px 1px;

font:12px Verdana;

color:#000;

}

0
Accepted
Dimo
Telerik team
answered on 09 May 2008, 02:28 PM
Hello Pepito,

Maybe my previous advice was a little misleading, however, I thought you were using a custom skin, while you might be using the embedded Web20 skin and trying to make minor changes.

If this is the case, you should use a little stronger selectors in order to override the embedded skin styles.

Please try this:

.radInput_Web20  .radEnabledCss_Web20,
.radInput_Web20  .radEmptyMessageCss_Web20,
.radInput_Web20  .radHoverCss_Web20,
.radInput_Web20  .radFocusedCss_Web20,
.radInput_Web20  .radReadOnlyCss_Web20,
.radInput_Web20  .radDisabledCss_Web20,
.radInput_Web20  .radNegativeCss_Web20,
.radInput_Web20  .radInvalidCss_Web20
{
    font:12px verdana,sans-serif;
}

If this still does not help, please give some more information about how are you trying to change the skin - are you using an embedded one, or a custom one named Web20, etc. A code snippet will turn out useful as well.


Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Pepito
Top achievements
Rank 1
answered on 09 May 2008, 02:47 PM
Hi Dimo :

I am using  Web20 Skin . But  I have disable  the skins from the dll I am customizing all the skins(EnableAjaxRendering=false).

So I have Web20 skin in a folder and i have registered all the css in the head of the masterpage.

And it's not working. And i don't know why. Can you try it?

Regards.Pepito


0
Dimo
Telerik team
answered on 09 May 2008, 03:06 PM
Hi Pepito,

In order to use a custom skin with a RadControl for ASP.NET AJAX, you must set

EnableEmbeddedSkins="false"

to this control. Do you have that?


Greetings,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Pepito
Top achievements
Rank 1
answered on 09 May 2008, 03:45 PM
Hi Dimo:

Sorry I just tried it with the wrong atribute.
You're right

I feel quite stupid right now...

Thank you.

Tags
Input
Asked by
Pepito
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Pepito
Top achievements
Rank 1
Share this question
or