[IGNORE] Default styling?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
HiddenS3crets
Forum Contributor
Posts: 119
Joined: Fri Apr 22, 2005 12:23 pm
Location: USA

[IGNORE] Default styling?

Post by HiddenS3crets »

If I have styling for certain tag (in this case, <input>), is there a way to define a class that will set the element back to it's default settings?

I want to do this because I want styling for my textareas and input boxes, but not for the submit/reset buttons. Since there will only be one button, it'd be more convenient to give the button a class that gives it default styling compared to giving a class to every input box and textarea.

Is this possible?
Last edited by HiddenS3crets on Thu Jul 05, 2007 7:00 pm, edited 1 time in total.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post by califdon »

Use selectors that specify class names, then an element will be displayed using default style unless you specify class='whatever' in the html tag of the one you want to be different.
HiddenS3crets
Forum Contributor
Posts: 119
Joined: Fri Apr 22, 2005 12:23 pm
Location: USA

Post by HiddenS3crets »

I know that, but what I'm trying to do is basically the opposite
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I think what califdon is saying is style the elements you want styled, then style the button class as the default style and apply that class to the button.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

I just define my buttons with the <button> tag instead of the <input> tag. I don't feel that they are inputs anyway.
Post Reply