title: asp.net-mvc How to change width Html.TextBox
body: <p>how do you change the width of a textbox in an asp.net-mvc View</p>
  
  <p>i want to have these fields side by side and the state textbox much shorter width</p>
  
  <pre><code>            &lt;p&gt;
                  &lt;label for="city"&gt;City:&lt;/label&gt;
                  &lt;%= Html.TextBox("city")%&gt;
                  &lt;label for="state"&gt;State:&lt;/label&gt;
                  &lt;%= Html.TextBox("state")%&gt;
              &lt;/p&gt;
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>none of the below answers seem to work for me.  I noticed that in site.css i see this:</p>
  
  <pre><code>fieldset p 
  {
      margin: 2px 12px 10px 10px;
  }
  
  fieldset label 
  {
      display: block;
  }
  
  fieldset label.inline 
  {
      display: inline;
  }
  
  legend 
  {
      font-size: 1.1em;
      font-weight: 600;
      padding: 2px 4px 8px 4px;
  }
  
  input[type="text"] 
  {
      width: 200px;
      border: 1px solid #CCC;
  }
  
  input[type="password"] 
  {
      width: 200px;
      border: 1px solid #CCC;
  }
  </code></pre>
  
  <p>how do i override this behavior for one field (textbox)</p>