TextField Background

  1. #1

    TextField Background

    Hello,

    I want ALL textfields with background other than white. How to change the background color?

    x-textfield-background ?

    Thanks.
  2. #2
    Hi,

    Please look at the example.

    Example
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    
        <style type="text/css">
            .x-form-text {
                background-image: none;
                background-color: red;
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:TextField runat="server" />
            <ext:TextField runat="server" />
        </form>
    </body>
    </html>
  3. #3
    Quote Originally Posted by mrd View Post
    I want ALL textfields with background other than white. How to change the background color?
    You can change using CSS.
    Geoffrey McGill
    Founder
  4. #4
    Thanks Daniil.

Similar Threads

  1. [CLOSED] V2.0 TextField background
    By Aurelio in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 16, 2012, 8:46 AM
  2. [CLOSED] BackGround TextField
    By majunior in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 19, 2011, 6:48 PM
  3. Dynamically change textfield background color
    By VALUELAB in forum 1.x Help
    Replies: 0
    Last Post: Mar 04, 2011, 4:50 PM
  4. [CLOSED] the css background-color:Transparent does not work for TextField
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 10, 2010, 3:17 PM
  5. Replies: 2
    Last Post: May 20, 2009, 3:21 PM

Tags for this Thread

Posting Permissions