[CLOSED] change button font color and size

  1. #1

    [CLOSED] change button font color and size

    How to change the font color and size of a single button? I managed to change it globally with the css class ".x-btn button". But what if i want to change it for just a single button in a page?

            .x-btn button {
                font-size: 13px;
                font-weight: bold;
                height: 30px;
                width:90px;       
                color: #003867;
            }
    Last edited by Daniil; Apr 23, 2013 at 3:49 AM. Reason: [CLOSED]
  2. #2
    Hello!

    There is CtCls attribute which you can use to set custom CSS class:

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET Examples</title>
        <style>
            .ux-btn button {
                font-size: 13px;
                font-weight: bold;
                height: 30px;
                width:90px;       
                color: #003867;
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" Theme="Gray" />
            
            <ext:Button runat="server" Text="MyButton" CtCls="ux-btn"></ext:Button>
        </form>
    </body>
    </html>

Similar Threads

  1. GridPanel - Change Font Size
    By jlucid in forum 2.x Help
    Replies: 0
    Last Post: Jan 06, 2013, 12:20 AM
  2. Font Size Change
    By megang in forum 1.x Help
    Replies: 1
    Last Post: Apr 09, 2012, 10:02 AM
  3. Change font/button size
    By plykkegaard in forum 1.x Help
    Replies: 0
    Last Post: Sep 02, 2010, 3:09 PM
  4. How to set Label Font size and color
    By Dinesh.T in forum 1.x Help
    Replies: 6
    Last Post: Aug 11, 2009, 2:17 PM
  5. How to set Panel Font size and color
    By Dinesh.T in forum 1.x Help
    Replies: 1
    Last Post: Jul 30, 2009, 1:17 PM

Posting Permissions