I'm wondering if it is possible to format the form buttons on a page using CSS without adding classes or ids to the existing markup whilst not affecting the other <input> elements.

Example:


  input[type=submit]{
   background:red;
  }

Note that IE doesn't support this unless you add the Internet Explorer 7 hack [1] to your CSS file.

[1] <http://dean.edwards.name/IE7/>


-- Anne van Kesteren <http://annevankesteren.nl/>

*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************




Reply via email to