title: How do I get my nav panel to change color based on the active page?
body: <p>Currently working on my first solo project out of college for the university's technology department. The home page looks like <a href="https://jsfiddle.net/3toftjko/" rel="nofollow">this</a>.</p>
  
  <p>What I want to happen is the navigation (Home, Contact, etc.) to appear as it does on <a href="/questions/tagged/hover" class="post-tag" title="show questions tagged &#39;hover&#39;" rel="tag">hover</a> when the user is on that page.  Short of having a second class or id to denote it on it's respective pages is there another way?<h2>HTML</h2></p>
  
  <pre><code>&lt;div id="wrap"&gt;
  &lt;div id="header"&gt;
      &lt;img src=""&gt;
      &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;EXTONE&lt;/a&gt;
          &lt;/li&gt;|
          &lt;li&gt;&lt;a href="#"&gt;EXTTWO&lt;/a&gt;
          &lt;/li&gt;|
          &lt;li&gt;&lt;a href="#"&gt;EXTTHREE&lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  &lt;div id="nav"&gt;
      &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;Home&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="news.html"&gt;News&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="services.html"&gt;Services&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Submit a Ticket&lt;/a&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <h2>CSS</h2>
  
  <pre><code>html, body {
  margin: 0;
  padding: 0;
  color: #222;
  background: -webkit-linear-gradient(#0026aa, white);
  /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(#0026aa, white);
  /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(#0026aa, white);
  /* For Firefox 3.6 to 15 */
  background: linear-gradient(#0026aa, white);
  /* Standard syntax */
  }
  body {
  padding: 10px;
  font: 76%/150%"Lucida Grande", "Lucida Sans Unicode", Lucida, Verdana,      Geneva, Arial, Helvetica, sans-serif;
  }
  #nav {
  margin: 0;
  padding: 0;
  background: none;
  width: 100%;
  float: left;
  border-bottom: 3px solid #cbcc9d;
  }
  #nav li {
  display: inline;
  padding: 0;
  margin: 0;
  }
  #nav a:link, #nav a:visited {
  color: #000;
  background: #cbcc9d;
  padding: 20px 40px 4px 10px;
  float: left;
  width: auto;
  border-right: 1px solid #42432d;
  text-decoration: none;
  font: bold 1em/1em Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  }
  #nav a:hover, #nav a:focus {
  color: #fff;
  background: #727454;
  }
  #nav li:first-child a {
  border-left: 1px solid #42432d;
  }
  #home #nav-home a, #contact #nav-contact a, #news #nav-news a, #services     #nav-services a {
  background: #e35a00;
  color: #fff;
  text-shadow: none;
  }
  #home #nav-home a:hover, #contact #nav-contact a:hover, #news #nav-news     a:hover, #services #nav-services a:hover {
  background: #e35a00;
  }
  #nav a:active {
  background: #e35a00;
  color: #fff;
  }
  #wrap {
  width: 960px;
  margin: 0 auto;
  background: none;
  }
  #header {
  padding: 5px 10px;
  background: none;
  padding-top: 25px;
  text-align: right;
  }
  #header li {
  display: inline;
  list-style-type: none;
  }
  #header li a {
  text-decoration: none;
  color: #cbcc9d;
  font-weight: bold;
  }    
  #header img {
  display: block;
  float: right;
  }
  h1 {
  margin: 0;
  }
  #main {
  float: left;
  width: 530px;
  height: 763px;
  padding: 10px;
  background: white;
  border-right: 1px solid #cbcc9d;
  }
  h2 {
  margin: 0 0 1em;
  }
  #sidebar {
  float: right;
  width: 350px;
  height: 763px;
  padding: 10px;
  background: white;
  padding-right: 4em;
  }
  #footer {
  clear: both;
  padding: 5px 10px;
  background: #cc9;
  }
  #footer p {
  margin: 0;
  }
  * html #footer {
  height: 1px;
  }
  #ServicesListCol {
  float: left;
  overflow-y: scroll;
  overflow-x: hidden;
  display: block;
  width: 530px;
  height: 665px;
  }
  #ServicesListCol h4 {
  font-weight: bold;
  font-size: 12pt;
  text-decoration: none;
  }
  #ServicesListCol ul li a {
  text-decoration: none;
  font-size: 10pt;
  font-weight: normal;
  }
  #LetterNav {
  text-align: center;
  }
  #LetterNav a {
  text-decoration: none;
  }
  a {
  text-decoration: none;
  color: #0026aa
  }
  a:visited {
  color: #0026aa
  }
  a:hover {
  text-decoration: underline;
  }
  </code></pre>
  
  <p>I'm using some JavaScript on later pages and I have a Spry accordion happening on another but I don't know outside the XHTML, CSS3, &amp; JavaScript wheelhouses enough to do it offhand.</p>