SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Knowledge is key 2 progression Tryst's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Setting a style for a disabled <FORM> element

    Hi all,

    I can't for the life of me set a style for a <FORM> element that is disabled.

    I have tried the following but to no avail...

    Code:
    form disabled { background-color: #000077; }
    input disabled { background-color: #000077; }
    text disabled { background-color: #000077; }
    input text disabled { background-color: #000077; }
    So am I way off the mark?

    Tryst

  2. #2
    Knowledge is key 2 progression Tryst's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, apprently CSS3 will have full support for for disabled <FORM> elements. I have made use of CSS2 atribute selectors (input[disabled]{color:#f00})
    , but only Mozilla and Opera support them.

    It looks like I may have to resort to Javascript to sort IE problems.

    Tryst


Bookmarks

Posting Permissions

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