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

    Join Date
    Nov 2001
    Posts
    121
    Rep Power
    13

    how to define css styles for text box input's only


    if i do:
    Code:
    input {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 9px;
    	border: 1px solid #666666;
    }
    all other input's like password, radio and checkboxes are given that style too.. i only want to change type="text" input's

    i tried:
    Code:
    input[type="text"] {
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-size: 9px;
    	border: 1px solid #666666;
    }
    but it doesn't work (ie 5.5 win)
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
    why not just use a class instead?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    Inside the GNU/Hurd kernel
    Posts
    492
    Rep Power
    12
    That's because Internet Explorer supports almost nothing from CSS 2 and thus also not selectors.
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    121
    Rep Power
    13
    Originally posted by degsy
    why not just use a class instead?
    because it's not as clean as simply changing the tags.
    but if it's the only way, that's how i do it
  8. #5
  9. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    121
    Rep Power
    13
    Originally posted by Tuxie
    That's because Internet Explorer supports almost nothing from CSS 2 and thus also not selectors.
    ok.. thanks
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jan 2002
    Location
    Seattle WA
    Posts
    863
    Rep Power
    14
    Out of curiosity, do the older, non-Explorer browsers support selectors? Ones like Netscape 6.x, Opera, etc.

    Or is support for selectors limited to the most recently released browsers, Netscape7 and Mozilla?

IMN logo majestic logo threadwatch logo seochat tools logo