Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need CSS HTML Selectors for diffferent input types

0 views
Skip to first unread message

sean

unread,
Apr 10, 2002, 4:27:49 PM4/10/02
to
Does anyone know how if it's possible (using IE6) to set
Style classes for the different input types (e.g.
text,submit,radio button, checkbox etc).

I know you can use input, select, and fieldset as HTML
selectors in your stylesheet, but I can't figure out how
to target the types of input.

Any help is greatly appreciated!

Jonathan Snook

unread,
Apr 11, 2002, 11:19:20 AM4/11/02
to
Here's an example of using the attribute selector in CSS.
input[type="text"] { cursor: hand }

Caveat: it only works in Netscape 6. Go figure.

A better idea (at least one that's more supported) is to create a class for
each type of input that you have and then apply the classes to each input.

Check out:
http://www.blooberry.com/indexdot/css/syntax/selectors/attribute.htm for
more information on attribute selectors.

Jonathan
http://www.snook.ca/


"sean" <se...@interfaceit.net> wrote in message
news:110001c1e0ce$2ea42a40$39ef2ecf@TKMSFTNGXA08...

0 new messages