"Sascha Beyer" <admin (AT) webprojects (DOT) ch> wrote:
Quote:
Is there a way to define a standard class for submit buttons? |
There are no standard classes in HTML.
Quote:
Or do I have to define a specific class on EVERY submit button
(class=mybutton)? |
No. Why would you?
Now, guessing what you might mean on the Subject line but didn't say in
the body, I presume you would like to change the appearance of submit
buttons using style sheets. Then the best practical advice is "Don't".
Don't mess up with the user interface. Take a look at Google. They use
well-designed artistic logos, but they don't change the appearance of
form fields. In fact, that's typical of _useful_ forms.
But if you do, then the next best approach is to use
input[type=submit] { ... }
in CSS, i.e. an attribute selector. The best part of this is that does
not work on browsers like IE, which doesn't understand attribute
selectors at all.
--
Yucca,
http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring:
http://www.cs.tut.fi/~jkorpela/www.html