How can I prevent my buttons from being formated?

I am using CSS to format my fields <input>. Unfortunitly, this is causing my buttons to be formated too. Is there some way I can prevent the button from being formated by the CSS and just appear formated by the user's client (for example, Win XP)?<style>
input.red {background-color: red;}
</style>

<input type="text" class="red">

like that?

Gaz.Thank you for the response, however I would like to now know to have the default styling applied to the button. By default, I mean the style that is inherient in the user's browser. On win xp it would look like a win xp button, etc. This is the standard style, however was changed once I styled the fields.I am using CSS to format my fields...Is there some way I can prevent the button from being formated by the CSSYou can specify your style definitions to include elements whose attributes are set to a certain value. For instance,input[type="text"], input[type="password"] { }would stylize the text and password input types and leave the rest alone. This is implemented in Opera, Netscape (Mozilla), however still unimplemented in IE. So (for now) a better choice is to use classes, as CrazyGaz showed.I would like to now know to have the default styling applied to the button. By default, I mean the style that is inherient in the user's browserTo use whatever style is default to the user's machine all you have to do is not apply any additional styles to it.I don't think that there is a way that you can unstyle something after you've already changed its style through CSS. I think that the best way to do it would be just to do what CrazyGaz said and make a class, then have everything but your buttons be a member of that class. The thing jeffmott was talking about looked cool, but it's too bad it doesn't work in IE...I don't think that there is a way that you can unstyle something after you've already changed its style through CSSCorrect (I'm actually not 100% certain on this, but pretty close). You can redefine the style, but not remove it. So you just have to not define it in the first place.
 
Back
Top