Page 1 of 1

[IGNORE] Default styling?

Posted: Wed Jul 04, 2007 4:28 pm
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?

Posted: Wed Jul 04, 2007 6:11 pm
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.

Posted: Thu Jul 05, 2007 1:18 pm
by HiddenS3crets
I know that, but what I'm trying to do is basically the opposite

Posted: Thu Jul 05, 2007 1:39 pm
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.

Posted: Thu Jul 05, 2007 1:54 pm
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.