title: How to make my asp:button longer with width?
body: <p>I'm trying to make my asp:button longer. I've tried putting width in the code itself. This is the original Code. </p>
  
  <pre><code>&lt;asp:Button ID="btnLogin" runat="server"  Cssclass="btn" onclick="btnLogin_Click" Text="Login" &gt;&lt;/asp:Button&gt;
  </code></pre>
  
  <p>I've tried putting it in C#. </p>
  
  <pre><code>&lt;script runat="server"&gt;
  
      protected void Button2_Click(object sender, System.EventArgs e)
      {
           btnLogin.Width = 700;
      }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I've also tried CSS</p>
  
  <pre><code>.form-container .btn {
          background-color: green;
          color: white;
          padding: 16px 20px;
          border: none;
          cursor: pointer;
          width:1000%;
          margin-bottom: 10px;
          opacity: 0.8;
      }
  </code></pre>
  
  <p>I've also tried to put the width in the button code itself with </p>
  
  <pre><code>&lt;asp:Button ID="btnLogin" runat="server"  width="700px" onclick="btnLogin_Click" Text="Login" &gt;&lt;/asp:Button&gt;
  </code></pre>
  
  <p>Nothing is working and I'm out of ideas as to what to do. Anybody else have any thoughts?</p>