[CLOSED] How to change text color in Ext Button

  1. #1

    [CLOSED] How to change text color in Ext Button

    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?
    Last edited by Daniil; Jun 26, 2012 at 9:20 PM. Reason: [CLOSED]
  2. #2
    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.

Similar Threads

  1. Replies: 2
    Last Post: Jul 11, 2012, 5:18 PM
  2. [CLOSED] Button text color
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 22, 2011, 12:02 PM
  3. Replies: 12
    Last Post: Jun 17, 2009, 12:07 PM
  4. [CLOSED] Changing Button text color
    By HOWARDJ in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 15, 2009, 10:23 AM
  5. [CLOSED] Change color of text in <ext:StatusBar
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Nov 28, 2008, 7:16 AM

Posting Permissions