[thelist] CSS input type styling

Stephen Caudill SCaudill at municode.com
Mon Sep 8 14:49:59 CDT 2003


Chris Evans on Monday, September 08, 2003 3:01 PM said:

: Hello!
: 
:   I am trying to style my <input type=text> boxes different from
: my <input type=image> buttons.  I can't seem to find the correct
: syntax to use without assigning them different classes.
: 
: Suggestions?
: 
: Chris Evans
: http://www.fuseware.com

Chris,
  It goes like this:

input[type=submit]

It's called an 'attribute selector' however, IE doesn't support it, 
so you're stuck covering M$'s slackness with a class, for now.

here's the w3 spec:
http://www.w3.org/TR/REC-CSS2/selector.html#attribute-selectors

-njoi
Stephen
http://www.mechavox.com/


More information about the thelist mailing list