Is it possible to change DISABLED elements layout?

Discussion in 'HTML & Website Design' started by x0x, Oct 11, 2009.

  1. #1
    I have a disabled button and checkbox. I'd like to change their appearance. Is that possible? (disabled="yes")
     
    x0x, Oct 11, 2009 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can't style those elements since they're CDATA*. You need to wrap a SPAN around the tags and style them instead.

    *that's technically not true, but there's not much you can style with them other than the basics, such as borders, heights, margins and padding, and widths; a couple others may be possible but I don't remember them off the top of my head
     
    Dan Schulz, Oct 11, 2009 IP