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

Modify button text color ?

3 Answers 396 Views
Input
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 29 Jan 2009, 05:55 PM
Hi

I am using  RadTextBox and a regular asp.net button with a form
decorator on the page set to use the skin 'black' .  (I did not find a
RadButton in the kit) . I need to modify the Text color to match the
website's colors, but I can't seem to achieve it.

I have tried setting via an inline style and using the button's dialog box,
separately and together, but to no effect. It is resolutely grey/white..
<asp:Button ID="WineList" runat="server" Text="Search" style="color:#A49261" ForeColor="#A49261" /> 

With this forum's help I have managed to do it for the RadMenu, RadPanel,
and RadTextBox but this one - no joy. What is the trick here?

When I have all the colors nicely tuned up, I will make an alternative black-gold
skin.

Thanks for help!

Clive

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 29 Jan 2009, 07:00 PM
Hello Clive,

Please test the following code-snippet:
<style type="text/css"
    a.radfd_Default span span 
    { 
        color#A49261
    } 
</style> 
</head> 

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Clive Hoggar
Top achievements
Rank 1
answered on 29 Jan 2009, 10:14 PM
Hi

I inserted the content into my master css file. Is that OK?
When I look at the code in your reply I see only spaces but in the copied/pasted
there is an underscore. Which is correct? eg:

a.radfd_Default

 

span span

 

{

 

color: #A49261;

 

}


I pasted it into the master css file like that. Is that correct?

Anyway it seemed to have no effect, sadly.

Thanks

Clive
0
Daniel
Telerik team
answered on 30 Jan 2009, 04:26 PM
Hello Clive,

Please excuse me but I forgot to mention that you need to replace Default with the actual name of the theme you use.

Example:
<style type="text/css">  
    a.radfd_Black span span  
    {  
        color#A49261;  
    }  
</style>  
</head>  

Best regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Input
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Clive Hoggar
Top achievements
Rank 1
Share this question
or