Sent by Michael Sauers 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?
Not knowing what exactly you're trying to style you can create a single
style for all the inputs and then create a non-style for the one you don't
want styled. For example: (I'm using paragraphs in my example because my
brain isn't awake enough yet to style inputs but the logic still holds...)
p {background: red; border: 1px solid green}
p.plain {background: none; border: none}
<p>styled paragraph</p>
<p class="plain">no styled</p>
<p>styled paragraph</p>
You're still using classes but not on all of them, just the exceptions.
--------------------------------------------------
Michael Sauers, Librarian, Trainer & Author
Bibliographical Center for Research (BCR)
Aurora, CO :: 303-751-6277 x124 :: [EMAIL-REMOVED]
--------------------------------------------------
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/