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
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS able to render disabled button?

    Is there a way using CSS that I can specify the look of a button when it goes disabled?

    G

  • #2
    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], textarea[disabled], button[disabled] {
    /* my CSS */
    }

    I believe would style the disabled form elements in any browser that supports any real amount of CSS2, which is of course not IE, but rather Gecko and Opera 6.

    I would assume by disabling the element in JS, the attribute "disabled" will be updated to reflect that, though I don't know for sure.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wow. Thanks JCJ and JKD.

    G


  •  

    Posting Permissions

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