
Untitled
By: a guest on
May 25th, 2012 | syntax:
None | size: 1.23 KB | hits: 12 | expires: Never
Remove CSS class for Particular element in HTML
form input[type="text"], form input[type="email"], form input[type="password"], form select, form textarea {
background: url("../images/input-bg.gif") repeat-x scroll 0 0 #FFFFFF;
border: 1px solid #CCCCCC;
padding: 4px 5px;
}
/* General rule for inputs */
form input[type="text"], form input[type="email"], form input[type="password"], form select, form textarea {
background: url("../images/input-bg.gif") repeat-x scroll 0 0 #FFFFFF;
border: 1px solid #CCCCCC;
padding: 4px 5px;
}
/* Specific rule for inputs */
form input[type="text"].reset-inputs, form input[type="email"].reset-inputs, form input[type="password"].reset-inputs, form textarea.reset-inputs, form select.reset-inputs {
background: none;
border: none;
padding: 0;
}
<input class="noeffect"/>
form input.noeffect {
background: none;
}
html: <input class="here" ... />
css: form input.here[type="text"]
<div class="here">
<input /><input /><input />
</div>
css: form .here input[type="text"]
form input[type="text"] + form input[type="text"] {
background:none;
}
form input[type="text"]:nth-child(2n){
background:none;
}
form input.diff{
background:none;
}