Sent by Jason Estes on 19 August 2003 14:02
> For instance, I have a form and I'd like all the text fields to have a
> > particular style. To do this I've had to create a class and apply it to
> > all the text fields. What I'd prefer to do is create an input style but
> > then choose not to apply it to any buttons named submit.
> > Is there a way you can do this?
I do this exact thing with my forms something like this
input, select, textarea {
width:150px;
border:1px solid black;
background-color:#fff;
color:#000;
}
input.submit {
color:#fff;
background-color:#000;
width:auto;
border:3px outset #fff;
}
you have to declare your exceptions with something of higher specificity
than your originals, in this example it's done by using the tag+class
declaration.
HTH
Jason Estes
The BEWB
www.bewb.org
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/