title: Can't seem to override a CSS property (margin-right)?
body: <p>I have a really basic list in HTML that looks like this:</p>
  
  <pre><code>&lt;div id="navmenu"&gt;
      &lt;ul&gt;
      &lt;li&gt;photography&lt;/li&gt;
      &lt;li&gt;&amp;#149&lt;/li&gt;
      &lt;li&gt;people&lt;/li&gt;
      &lt;li&gt;places&lt;/li&gt;
      &lt;li&gt;things&lt;/li&gt;
      &lt;li id="lastElement"&gt;about&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My CSS formatting looks like this:</p>
  
  <pre><code>div#navmenu li {
       display: inline;
       margin-right: 40px;
  }
  </code></pre>
  
  <p>However, I want the last li element's margin-right be 0px. So I did:</p>
  
  <pre><code>li#lastElement {
       margin-right: 0px;
  }
  </code></pre>
  
  <p>When I check on Chrome's dev tools, this last CSS specification is crossed out. I don't understand why it's overridden by the "div#nav menu li" property? Isn't the last li element with its own id more specific?</p>
  
  <p>Any help would be appreciated. Thanks in advance.</p>