title: Applying a css style to Asp.net label (c#) . What am i doing Wrong?
body: <p>I've a code like this:</p>
  
  <pre><code>&lt;div id = "part1"&gt;
      &lt;asp:Label id = "label1" CssClass="labels" runat="server" Text="label1" /&gt;
      &lt;asp:TextBox id = "textBox1"  runat="server" Text="test1" /&gt;
      &lt;br /&gt;
      &lt;asp:Label id = "label2" CssClass="labels" runat="server" Text="label2" /&gt;
      &lt;asp:TextBox id = "textBox2" " runat="server" Text="test2" /&gt;
  &lt;/div&gt;
  
  &lt;div id = "part2"&gt;
      &lt;asp:Label id = "label3" CssClass="labels" runat="server" Text="label3" /&gt;
      &lt;asp:TextBox id = "textBox3"  runat="server" Text="test3" /&gt;
      &lt;br /&gt;
      &lt;asp:Label id = "label4" CssClass="labels" runat="server" Text="label4" /&gt;
      &lt;asp:TextBox id = "textBox4"  runat="server" Text="test4" /&gt;
  &lt;/div&gt;
  
  &lt;div id = "part3"&gt;
      &lt;asp:Label id = "label5" CssClass="labels" runat="server" Text="label5" /&gt;
      &lt;asp:TextBox id = "textBox5"  runat="server" Text="test5" /&gt;
     &lt;br /&gt;
      &lt;asp:Label id = "label6" CssClass="labels" runat="server" Text="label6" /&gt;
      &lt;asp:TextBox id = "textBox6"  runat="server" Text="test6" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>with the following CSS associated:</p>
  
  <pre><code>.part1
  {
   float:left;
   width: 300px;
  }
  .part2
  {
   float:left;
   width: 300px;
  }
  .part3
  {
   float:left;
   width: 300px;
  }
  
  .labels
  {
   width: 150px;
  }
  </code></pre>
  
  <p>My goal is:
  - to have 3 columns of width = 300px;
  - in columns (for each line): one label and one textbox
  - Every label should be always with width = 150px to have textbox at same position</p>
  
  <p>It seams the columns float well (I can see three different columns) but label just adapt to their content.</p>
  
  <p>What I'm doing wrong?</p>
  
  <p>Thank you</p>