title: How to Apply CSS to ASP:FileUpload Control
body: <p>How exactly do I style this control?</p>
  
  <p>I have tried this but it doesn't work.</p>
  
  <pre><code>&lt;asp:FileUpload id="upload_tb" runat="server" /&gt;
  
  #upload_tb
  {
    width: 500px;
  }
  </code></pre>
  
  <p>Also how can I style the browse button that comes with this control? If it is not possible are there other alternatives?</p>
  
  <p>Edit:</p>
  
  <p>I checked the generated source and asp.net gives the control this id <code>ctl00_main_content_upload_tb</code></p>
  
  <p>I changed the CSS to</p>
  
  <pre><code>#ctl00_main_content_upload_tb
  {
    width: 500px;
  }
  </code></pre>
  
  <p>but it does not stretch the control. It adds padding to the right of the control. Any ideas?</p>