label size style not working

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
 
R

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.
 
R

rodchar

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;">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top