label size style not working

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all
I have a div on my web page. Inside the div I have a label and a textbox
(flow layout). I add an entry in my styles section to size the label and
looks correct in the designer. However, when I look in the browser it's like
the size style isn't working. Any ideas?

thanks,
rodchar
 
<div id="inpDiv">
<label style="width: 200px;">
First Name</label>
<asp:TextBox ID="TxtFirstName"
runat="server"></asp:TextBox><br />

no matter how large i make the label width on the style it does no affect
the display in the browser. It just shows up right next to the textbox.
 
Thanks for the help Mark,
rod.

Mark Rae said:
There you go! Now that you've provided the code which wasn't working, I can
see exactly what the problem is and how to fix it:

<label style="width:200px;float:left;">
 
Back
Top