title: Asp:Textbox width
body: <p>Hello I am having this problem and I have looked all over google but nothing seems to help. </p>
  
  <p>I have two Text boxes, and I just want both to be the same width. One is a multiline textbox and the other is a singleline text box. When i set both the widths of these text boxes only the Multiline box goes the correct width the singleline text box just seems to ignore it, but if I give the Single line text box the textmode of Multiline it works fine? </p>
  
  <p>Can anyone see why?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container &gt; * 
  {
      display: inline-block;
  } 
  .labelspace
  {
      padding-top:1%;
      padding-left:2.5%;
      width:50%;
  }
  .formfield *
  {
      vertical-align:text-top;
  }
  
  .headfont
  {
      font-size:11pt;
  }
  
  .answerspace
  {
      padding-top:1%;
      padding-left:15px;
  
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div class="labelspace"&gt;
      &lt;div class="formfield"&gt;
        &lt;asp:Label ID="lblComments" runat="server"&gt;
          &lt;p class="headfont"&gt;&lt;strong&gt;Additional Comments?&lt;/strong&gt;&lt;/p&gt;
        &lt;/asp:Label&gt;
      &lt;/div&gt;
    &lt;/div&gt;&amp;nbsp;
    &lt;div class="answerspace"&gt;
      &lt;div class="formfield"&gt;
        &lt;asp:TextBox ID="txtComments" runat="server" TextMode="Multiline" Rows="5" width="350px"/&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;&lt;br /&gt;
  &lt;div class="container"&gt;
    &lt;div class="labelspace"&gt;
      &lt;asp:Label ID="lblEmail" runat="server"&gt;
        &lt;p class="headfont"&gt;&lt;strong&gt;Your email address&lt;/strong&gt;&lt;/p&gt;
      &lt;/asp:Label&gt;
    &lt;/div&gt;&amp;nbsp;
    &lt;div class="answerspace"&gt;
      &lt;asp:TextBox ID="txtEmail" runat="server" TextMode="SingleLine" Width="350px"/&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>