Label text formating

  • Thread starter Thread starter Greg Smith
  • Start date Start date
G

Greg Smith

I have a web page with labels to the left of textboxes. Some of the labels
seem to "grow right" is size when shown in the browser even though I have
aligned the right edges in development mode.



Is there any way I can anchor the right edges of the label when shown in a
browser?





Any help is greatly appreciated.
 
Greg,

You need to use a table for everything to line up pretty. Drop the
labels in the first column, and textboxes in the second.

Here's the template I use so labels dont use more space than needed.
The   keep the text from wrapping.

<table style="width: 100%;">
<tr>
<td style="width: 1px">Your&nbsp;Name
</td>
<td>Put your textbox here
</td>
</tr>
<tr>
<td style="width: 1px">Your&nbsp;Password
</td>
<td>Put your textbox here
</td>
</tr>
</table>
 
Back
Top