View Full Version : cancel out a css style for a button

12-08-2005, 02:52 AM
I have a style which is applied to all inputs. However, I don't want that applied to one button in particular. How can I tell it not to use the style which looks like:

input {
border:1px solid black;

12-08-2005, 08:04 AM
one way is to make a class for button and use that class or you can give inline style for buttons only.

12-08-2005, 08:59 AM
Or if you simply don't care about IE

input[type=submit] {
IE doesn't support the above method, any other browser does though. :rolleyes:
Of course this would only work on submit buttons but other types can be styled as well but best solution is to probably to what kallo said.