renders as a span tag so that all labels for textfields take up the same
amount of space hence the textfields are all aligned but for some reason the
width is being ignored in IE 6 even though it works in Firefox. Is there some
bug associated with this and maybe the Doctype specification?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<style type="text/css">
..waLabel{
width:106px; /* push all textboxes to the right 106px */
margin-right:100px;
border: 1px dotted blue;
}
</style>
The FormView code:
<asp:Label ID="lblFirstNam e" runat="server" CssClass="waLab el" Text="First
Name" ></asp:Label>
<asp:TextBox ID="tbFirstName " runat="server" CssClass="waTex tBox"
Width="180px" Columns="25" MaxLength="25" Text='<%# Bind("FirstName ") %>'
</asp:TextBox>
The resulting span code:
<span id="fvRegDetail _lblFirstName" class="waLabel" >First Name</span>
<input name="fvRegDeta il$tbFirstName" type="text" value="Christop her"
maxlength="25" size="25" id="fvRegDetail _tbFirstName" class="waTextBo x"
style="width:18 0px;" />
thanks for any suggestions on this.