Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    changing the color of disabled text inputs

    How can I change throught CSS styles the color of my text inputs if they are disabled?
    I'm marking all my disabled text inputs with a grey color, but it's almost impossible to read the text out of that, as IE 6.0 automatically changes the text color of any disabled inputs into a dull grey.
    Thanks,
    V

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i don't think you can do that, but you might want to try this
    Code:
    <input type="text" value="" name="test" readonly="true">
    now the people can clearly read it but not mess with it.

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    input[disabled] {
    /* bla */
    }

    Or perhaps:

    input:disabled {
    /* bla */
    }

    Should do the trick in Moz.


  •  

    Posting Permissions

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