PDA

View Full Version : [CLOSED] How to change text color in Ext Button



UnifyEducation
Jun 25, 2012, 9:44 AM
Hi,

I try to change the text style in the Ext Button with the following code:

Html.X().Button().Text("Accueil").Width(100).Cls("my-style")
Css

.my-style {
color: red;
}
But it doesn't change the text color.
How can I change color of button text?

Daniil
Jun 25, 2012, 1:42 PM
Hi,

Please use:

.my-style .x-btn-inner {
color: Red;
}
or

<ext:Button runat="server" Text="<span style='color:Red;'>Test</span>">

I would prefer the approach with setting up the Cls property.