title: css .class doesn't work on anchor tag unless i add a.class. why?
body: <p>I have a simple css class that i use to style buttons and anchor tags, but there is something strange.</p>
  
  <pre><code>.green
   {
      background-color: #35db22;
      color:white;
   }
  </code></pre>
  
  <p>When i apply it to a button, it works fine. but when i try to apply it to a anchor tag, it doesn't, while other classes like my 'button' class do work on the anchor tag.</p>
  
  <pre><code>&lt;a class="button green"&gt;green&lt;/a&gt;
  </code></pre>
  
  <p>While i was debugging this, i found out it does work by adding <code>a.green</code> to the class selectors:</p>
  
  <pre><code>.green, a.green
  {
     background-color: #35db22;
     color:white;
  }
  </code></pre>
  
  <p>Am i the only one that thinks this is strange? Why is this happening?
  I have a lot more of these classes so adding it to all of them takes a lot of time... :(</p>
  
  <p>Any idea what's going on? or is this just a bug in css?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here's some more css because ZachSaucier asked for it:</p>
  
  <pre><code>/*CONTROLS*/
  button, a.button, input[type="submit"], input[type="button"] 
  {
  
      text-align:center;
  
      min-height:20px;
      min-width:100px;
      font-size:20px;
  
      border: none;
      padding: 5px;
      background-color: darkgray;
      color: black;
      text-decoration: none;
  
      -moz-transition: all 0.5s ease-out;
      -o-transition: all 0.5s ease-out;
      -webkit-transition: all 0.5s ease-out;
      transition: all 0.5s ease-out;
  }
  button:hover, a.button:hover, input[type="submit"]:hover, input[type="button"]:hover
  {
      background-color:gray;
      color:whitesmoke;
  }
  
  button:active, a.button:active, input[type="submit"]:active, input[type="button"]:active
  {
      background-color:black;
      color:white;
  }
  
  
  .green
  {
      background-color: #35db22;
      color:white;
  }
  </code></pre>
  
  <p>i'm a css beginner, so this might be something obvious...</p>