PDA

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



crazygamer
12-08-2005, 01: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;
background-color:#CCCCCC;
}

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

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

input[type=submit] {
border:0;
background:none;
}
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.