title: ASP.NET text box, set focus border color in external CSS file
body: <p>I have an ASP.NET text box. I am trying to set the color of the border to green when the textbox gains focus, and I want to be specific about the <strong>class</strong> of the textbox. The text box looks like this -</p>
  
  <pre><code>&lt;asp:TextBox CssClass="myInput" BorderStyle="None"  runat="server"&gt;Search&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p><strong>NOTE</strong>: I have BorderStyle="None" to start with, because when the textbox does not have focus, I want <em>no</em> border showing. Currently a border is shown on focusing, but it's not the color I want.</p>
  
  <p>I have tried the following in my CSS file -</p>
  
  <pre><code>.myInput:focus {
                   border: green;
                }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>input.myInput:focus {
  
                      border: green;
                  } 
  </code></pre>
  
  <p>(and a few others) but nothing has worked. Can someone please tell me how it can be done?
  Thanks!</p>