title: CSS is there something like a "class subclass"?
body: <p>I have 20 inputs in a page that are styled as buttons using the class property (that is, in the css I define borders, padding, width, etc).</p>
  
  <p>But I want each one to have a different background color. In my current CSS I have 20 classes (one for each input) which are copies of all the style properties except for background-color.</p>
  
  <p>It is working OK like this, but I feel somewhat uncomfortable repeting code. In there a very simple way to define most of the properties for all inputs (borders, padding, width...) and then specify the background-color, one for each input?</p>