[thelist] CSS of Input Element

Craig Saila crsaila at yahoo.ca
Thu Feb 21 11:54:01 CST 2002


Feingold Josh S wrote:
> I am trying to only style input elements of type "text".  Is there a way I
> can differentiate between type=text vs. type=checkbox in my stylesheet?

This doesn't work in IE, but does in Opera and NN6/Mozilla:
  INPUT[type=text] { background: red; }
  INPUT[type=checkbox] { background: transparent; }

Other options:
  - change the style via the DOM (limited support)
  - have a "text" class and a "checkbox" class, and apply the styles
that way.

--
Cheers,

Craig Saila
------------------------------------------
craig at saila.com  :  http://www.saila.com/
------------------------------------------


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




More information about the thelist mailing list