title: CSS last-child not working in menu
body: <p>I have a site under development and am trying to use the :last-child command to remove the right border on my navigation menu here: <a href="http://new.solacetree.org/" rel="nofollow">http://new.solacetree.org/</a></p>
  
  <pre><code>.main-navigation .main-nav ul li a {
      border-right: 1px solid #fff;
  }
  
  .main-navigation .main-nav ul li a:last-child {
      border-right: 0 none;
  }
  </code></pre>
  
  <p>I also tried the opposite by attempting to add a left border to the first child and it doesn't work either: </p>
  
  <pre><code>.main-navigation .main-nav ul li a:first-child {
      border-left: 1px solid #fff;
  }
  </code></pre>
  
  <p>HTML: </p>
  
  <pre><code>&lt;div class="main-nav"&gt;&lt;ul class="menu sf-menu sf-js-enabled" id="menu-main-navigation"&gt;&lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1836" id="menu-item-1836"&gt;&lt;a href="http://new.solacetree.org/?page_id=70" class="sf-with-ul"&gt;About Us&lt;/a&gt;&lt;a aria-expanded="false" class="dropdown-toggle" href="#"&gt;&lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;&lt;/a&gt;
  &lt;ul class="sub-menu" style="display: none;"&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1852" id="menu-item-1852"&gt;&lt;a href="http://new.solacetree.org/?page_id=1793"&gt;Letter from Emilio&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1853" id="menu-item-1853"&gt;&lt;a href="http://new.solacetree.org/?page_id=1800"&gt;Our History&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1854" id="menu-item-1854"&gt;&lt;a href="http://new.solacetree.org/?page_id=186"&gt;Board Members&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1855" id="menu-item-1855"&gt;&lt;a href="http://new.solacetree.org/?page_id=120"&gt;Contributors&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1856" id="menu-item-1856"&gt;&lt;a href="http://new.solacetree.org/?page_id=1803"&gt;Testimonials&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1867" id="menu-item-1867"&gt;&lt;a href="http://new.solacetree.org/?page_id=118"&gt;FAQs&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1864" id="menu-item-1864"&gt;&lt;a href="http://new.solacetree.org/?page_id=372"&gt;Brochures&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1857" id="menu-item-1857"&gt;&lt;a href="http://new.solacetree.org/?page_id=124"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1837" id="menu-item-1837"&gt;&lt;a href="http://new.solacetree.org/?page_id=33" class="sf-with-ul"&gt;Grief Support Programs&lt;/a&gt;&lt;a aria-expanded="false" class="dropdown-toggle" href="#"&gt;&lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;&lt;/a&gt;
  &lt;ul class="sub-menu" style="display: none;"&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1861" id="menu-item-1861"&gt;&lt;a href="http://new.solacetree.org/?page_id=16"&gt;Solace Kids (2-5)&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1860" id="menu-item-1860"&gt;&lt;a href="http://new.solacetree.org/?page_id=1809"&gt;Kids Helping Kids (6-13)&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1838" id="menu-item-1838"&gt;&lt;a href="http://new.solacetree.org/?page_id=841"&gt;Hearts for Teens (14-18)&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1839" id="menu-item-1839"&gt;&lt;a href="http://new.solacetree.org/?page_id=27"&gt;Adults (18 +)&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1859" id="menu-item-1859"&gt;&lt;a href="http://new.solacetree.org/?page_id=1569"&gt;Camp Hope (Summer)&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1840" id="menu-item-1840"&gt;&lt;a href="http://new.solacetree.org/?page_id=1314" class="sf-with-ul"&gt;Good Grief Program&lt;/a&gt;&lt;a aria-expanded="false" class="dropdown-toggle" href="#"&gt;&lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;&lt;/a&gt;
      &lt;ul class="sub-menu" style="display: none;"&gt;
          &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1872" id="menu-item-1872"&gt;&lt;a href="http://new.solacetree.org/?page_id=1338"&gt;Good Grief Flyer&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1869" id="menu-item-1869"&gt;&lt;a href="http://new.solacetree.org/?page_id=812"&gt;Join A Support Group&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1873" id="menu-item-1873"&gt;&lt;a href="http://new.solacetree.org/?page_id=1172"&gt;Virtual Solace&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1841" id="menu-item-1841"&gt;&lt;a href="http://new.solacetree.org/?page_id=98" class="sf-with-ul"&gt;Training&lt;/a&gt;&lt;a aria-expanded="false" class="dropdown-toggle" href="#"&gt;&lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;&lt;/a&gt;
  &lt;ul class="sub-menu" style="display: none;"&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1862" id="menu-item-1862"&gt;&lt;a href="http://new.solacetree.org/?page_id=55"&gt;Volunteer Training&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1849" id="menu-item-1849"&gt;&lt;a href="http://new.solacetree.org/?page_id=1819"&gt;Community Education&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1842" id="menu-item-1842"&gt;&lt;a href="http://new.solacetree.org/?page_id=1821" class="sf-with-ul"&gt;Publications &amp;amp; Resources&lt;/a&gt;&lt;a aria-expanded="false" class="dropdown-toggle" href="#"&gt;&lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;&lt;/a&gt;
  &lt;ul class="sub-menu" style="display: none;"&gt;
      &lt;li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1848" id="menu-item-1848"&gt;&lt;a href="http://the-solace-tree.myshopify.com/"&gt;Books&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1843" id="menu-item-1843"&gt;&lt;a href="http://new.solacetree.org/?page_id=94"&gt;Videos&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1844" id="menu-item-1844"&gt;&lt;a href="http://new.solacetree.org/?page_id=1773"&gt;Articles&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1877" id="menu-item-1877"&gt;&lt;a href="http://new.solacetree.org/?page_id=96"&gt;Recommended Reading&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1879" id="menu-item-1879"&gt;&lt;a href="http://new.solacetree.org/?page_id=974"&gt;Find a Grieving Center&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1880" id="menu-item-1880"&gt;&lt;a href="http://new.solacetree.org/?page_id=112"&gt;Grieving During the Holidays&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1845" id="menu-item-1845"&gt;&lt;a href="http://new.solacetree.org/?page_id=64" class="sf-with-ul"&gt;Ways to Help&lt;/a&gt;&lt;a aria-expanded="false" class="dropdown-toggle" href="#"&gt;&lt;i class="fa fa-caret-down"&gt;&lt;/i&gt;&lt;/a&gt;
  &lt;ul class="sub-menu" style="display: none;"&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1851" id="menu-item-1851"&gt;&lt;a href="http://new.solacetree.org/?page_id=57"&gt;Upcoming Events&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1850" id="menu-item-1850"&gt;&lt;a href="http://new.solacetree.org/?page_id=1826"&gt;Donate&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1846" id="menu-item-1846"&gt;&lt;a href="http://new.solacetree.org/?page_id=513"&gt;Supplies Needed&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1847" id="menu-item-1847"&gt;&lt;a href="http://new.solacetree.org/?page_id=180"&gt;Be a Volunteer&lt;/a&gt;&lt;/li&gt;
      &lt;li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1871" id="menu-item-1871"&gt;&lt;a href="http://new.solacetree.org/?page_id=53"&gt;Other Ways to Volunteer&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/li&gt;
  &lt;/ul&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Am I missing something with the last-child and first-child selectors?</p>