title: adding style to LinkButton without overriding css
body: <p>So it looks like if I add style such as background color to LinkButton in my .cs code, it overrides any css I have that applies to it.</p>
  
  <p>is there any way to add style rather than replace it in my code behind? Thanks!
  I am using link button as a menu, so active linkButton should have different background color.
  so my solution was when the user clicks on the link button in my event handler I do something like:</p>
  
  <pre><code>   lnkView.BackColor = System.Drawing.Color.FromName("#369");
  </code></pre>
  
  <p>But then my hover style which I have in my css will no longer work:</p>
  
  <pre><code>.navlist a:hover
  {
      color: #fff;
      background-color: #369;
      text-decoration: none;
  }
  </code></pre>
  
  <p>in my aspx:</p>
  
  <pre><code>&lt;ul class="navlist"&gt;
          &lt;li&gt;&lt;asp:LinkButton ID="lnkView" runat="server"&gt;view&lt;/asp:LinkButton&gt;&lt;/li&gt;
          &lt;li&gt;&lt;asp:LinkButton ID="lnkCreateNew" runat="server"&gt;create new&lt;/asp:LinkButton&gt;&lt;/li&gt;
      &lt;/ul&gt;
  </code></pre>