How to Change a Disabled Color

104 21
    • 1). Open your CSS envelope by placing the following code in your <HEAD> tag:
      <style type="text/css">
      <!--

    • 2). Name a new class and use the background-color attribute to choose what color you want, then add !important to the end of the class declaration. For example, if you wanted to declare make the background color bright red, you'd do something like: .formcolor { background-color: #ff4400 !important; }. The !important tag forces CSS to override the default HTML code.

    • 3). Close your CSS envelope with:
      -->
      </style>

    • 4). Create a disabled textbox and assign the class you created. Using the above example, you'd use the following code:
      <textbox disabled="true" class="formcolor" text="Example Text" />

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.