title: CSS ID Selector not working but Class Selector does
body: <p>I am having a problem in that a style is not being applied when I used an "ID" selector (#btnOK). However, if I use a class selector (.btnOK, by changing the "#btnOK" to a ".btnOK" in the CSS file), the style is applied.</p>
  
  <p>Any idea why? The style IS also applied in design mode, but  not at run time. It's findingf the css file, else, the class wouldn't be applied. Case sensitivity match on the ID.</p>
  
  <p>In the web page:</p>
  
  <pre><code>&lt;link href="CSS/CvCost.css" rel="stylesheet" type="text/css" /&gt;
  
  &lt;asp:Button ID="btnOK" CssClass="btnOK" runat="server" Text="OK" ValidationGroup="Add"/&gt;
  </code></pre>
  
  <p>In CSS/CvCost.css:</p>
  
  <pre><code>#btnOK{
      margin-right:5px;
      margin-top:5px;
      float:right;
      width:75px;
      height: 25px;
  }
  </code></pre>