Thread: css: focus?

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    37
    Rep Power
    12

    css: focus?


    I am trying to get the css focus selecter working, but with not much luck, any suggestions?

    input, textarea {
    background-color: #fcfaf4;
    font-family: verdana, sans-serif;
    font-size: 1em;
    color: #b6a57a;
    }

    input:focus, textarea:focus {
    background: #fff;
    font-family: verdana, sans-serif;
    font-size: 1em;
    color: #b6a57a;
    }
    Computers are like Air conditioning, when you start opening windows they stop working!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    May 2003
    Posts
    1,014
    Rep Power
    15
    It works beautifully in my favorite browsers (Mozilla, Opera 7).
    IE5.5 on my test machine does not support it.

    Hope this helps,
    Jeroen
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Somewhere near London
    Posts
    57
    Rep Power
    12
    Does it really need to be set using CSS? Surely there is another way you could do it that would be compatible with different browsers, such as using javascript.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    37
    Rep Power
    12
    I'm using IE6.0 and it doesn't work and as far as I know it should work

IMN logo majestic logo threadwatch logo seochat tools logo