HighDots Forums  

style for buttons

alt.html.tags alt.html.tags


Discuss style for buttons in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sascha Beyer
 
Posts: n/a

Default style for buttons - 02-19-2004 , 03:59 AM








Hello NG

Is there a way to define a standard class for submit buttons?
Or do I have to define a specific class on EVERY submit button
(class=mybutton)?

Any ideas?

Greets
Sascha



Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: style for buttons - 02-19-2004 , 11:46 AM






"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




Reply With Quote
  #3  
Old   
Sascha Beyer
 
Posts: n/a

Default Re: style for buttons - 02-27-2004 , 02:19 AM




"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> wrote

Quote:
There are no standard classes in HTML.
in css I mean (like a, body, table, td, tr...)

Quote:
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.
sometimes things like this are necessary bcause of a colorful layout.




Reply With Quote
  #4  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: style for buttons - 02-27-2004 , 05:53 AM



"Sascha Beyer" <admin (AT) webprojects (DOT) ch> wrote:

Quote:
There are no standard classes in HTML.

in css I mean (like a, body, table, td, tr...)
There are no standard classes in CSS either.

Quote:
sometimes things like this are necessary bcause of a colorful
layout.
The change the layout. There's no reason to make a _form_ colorful.
It's for user interface, not artistic impressions. Put the form onto a
page of its own if the site is otherwise colorful.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.