Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 25th, 2012  |  syntax: None  |  size: 1.23 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Remove CSS class for Particular element in HTML
  2. form input[type="text"], form input[type="email"], form input[type="password"], form select, form textarea {
  3.     background: url("../images/input-bg.gif") repeat-x scroll 0 0 #FFFFFF;
  4.     border: 1px solid #CCCCCC;
  5.     padding: 4px 5px;
  6. }
  7.        
  8. /* General rule for inputs */
  9. form input[type="text"], form input[type="email"], form input[type="password"], form select, form textarea {
  10.     background: url("../images/input-bg.gif") repeat-x scroll 0 0 #FFFFFF;
  11.     border: 1px solid #CCCCCC;
  12.     padding: 4px 5px;
  13. }
  14.  
  15. /* Specific rule for inputs */
  16. 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 {
  17.     background: none;
  18.     border: none;
  19.     padding: 0;
  20. }
  21.        
  22. <input class="noeffect"/>
  23.  
  24.  
  25. form input.noeffect {
  26.    background: none;
  27. }
  28.        
  29. html: <input class="here" ... />
  30.  
  31. css: form input.here[type="text"]
  32.        
  33. <div class="here">
  34.     <input /><input /><input />
  35. </div>
  36.  
  37. css: form .here input[type="text"]
  38.        
  39. form input[type="text"] + form input[type="text"] {
  40. background:none;
  41.  
  42. }
  43.        
  44. form input[type="text"]:nth-child(2n){
  45.   background:none;
  46. }
  47.        
  48. form input.diff{
  49.  background:none;
  50. }