Results 1 to 7 of 7

Thread: [HTML]How do I override the default colour of the disabled property?[Resolved]

  1. #1

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Resolved [HTML]How do I override the default colour of the disabled property?[Resolved]

    Hi all,
    I have a client select box which I want to set as read only, but because I have it set as disabled the font colour is not red like I wanted it seems to go to a default grey. How can I override this for this control only?
    Last edited by FishGuy; Jun 20th, 2005 at 10:34 AM.

  2. #2
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: [HTML]How do I override the default colour of the disabled property?

    will this work:
    HTML Code:
    <html>
    <head>
    </STYLE>
    <style type="text/css"><!--
    .formButton {
    border:3 beveled #0000ff; background-color: #0000ff;
    color: #ff0000;
    font-size: 10pt;
    font-family: verdana;
    font-weight: bold
    }
    --></style>
    </head>
    <body>
    	<input class="formButton" type="button" value="Button" name="B3" disabled>
    </body>
    </html>
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

  3. #3
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: [HTML]How do I override the default colour of the disabled property?

    actually that wont solve your poblem...

    after doing some research, i found that it wont work, it will always chane the text color, but you can make a custome button, look at this link:
    http://sophie-g.net/jobs/css/e_buttons.htm

    PS: i dont believe you can disable buttons in Fire Fox!
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

  4. #4

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Re: [HTML]How do I override the default colour of the disabled property?

    Its a Select Box though that I want to change the font colour on.

  5. #5
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: [HTML]How do I override the default colour of the disabled property?

    same thing, you cant do much about it
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

  6. #6

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Re: [HTML]How do I override the default colour of the disabled property?[Resolved]

    Thats a shame.

  7. #7
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: [HTML]How do I override the default colour of the disabled property?[Resolved]

    if you HAVE to get rid of it, you could play around with java script.

    take a look at this link:
    http://msdn.microsoft.com/library/de...opDownMenu.asp
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width