title: can't change <a> color and background color of an ID (#sidebar) with a class (.selected)
body: <p>I'm new at HTML and CSS, and I doing my first project and already facing a problem.</p>
  
  <p>Well I've created an ID named sidebar so I can have an sub-menu at the left side of the page, and a class named selected which would idenify the actual selected sub menu.</p>
  
  <pre><code>&lt;div id="sidebar"&gt;
      &lt;h2&gt;Sub Menu&lt;/h2&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href="#"&gt;A&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;B&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#" class="selected"&gt;C&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;D&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;E&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="#"&gt;F&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Then at my css "style.css"</p>
  
  <pre><code>#sidebar {
      float: left;
      width: 160px;
      margin: 0;
      padding: 0 1em 0 1em;
  }
              /*SIDE MENU*/
  #sidebar ul {
      list-style: none;
      margin: 0 0 20px 0;
      padding: 0;
  }
  #sidebar ul li { 
      display: inline;
      padding: 0;
      margin: 0;
  }
  #sidebar ul li a {
      display: block;
      color: #385900;
      background: inherit;
      text-decoration: none;
      margin: 0;
      padding: 5px 0 5px 0;
      border-bottom: 1px solid #C0C0C0;
  }
  #sidebar ul li a:hover {
      text-decoration: none;
      background: #E6E7E9;
      color: #DA7910;
  }
  </code></pre>
  
  <p>This works fine and did what I need;</p>
  
  <p>The problem occurs when I try to change Color and Background-color of the selected sub menu. The .selectd class isn't able to apply the color change over the #sidebar ID, only Font-weight and font-size worked as I expected. </p>
  
  <pre><code>.selected {
      color:white;
      background-color:#385900;
      font-weight:bold;
  }
  </code></pre>
  
  <p>What am I doing wrong? what is missing me?</p>
  
  <p>Thanks in advance!</p>