469,626 Members | 1,774 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

<label> and <asp:textbox> bafflement

Hi folks,
I'm using ASP.net 1.1 with C#

I've got this kind of thing going
<div class="row">
<label class="col1">Rm Name</label>
<asp:textbox id="txtRM" runat="server" cssclass="col2" ReadOnly="True"
<label class="col3">Rm Phone</label>
<asp:textbox id="txtRmPhone" runat="server" cssclass="col4" ReadOnly="True"
the labels are not runat="server" and are HtmlControls... and they have a
class of "col1" and "col3" whilst the text boxes have "col2" and "col4"

Each col is a floated element with text aligns of right (for labels) and
left for textbox

Here's my question

the text size in both the label and the textbox is set to a relative font
size from Body of Small and is set at 70%

The text size inside the label is exactly the same as the text size inside
the textbox and yet when they display in IE6 (and it is our only targeted
client because it's an intranet) , the label is aligned to the top and not
the bottom of the text box...

why is this..is there anyway to align the label to the bottom of the textbox
w/o using position:relative;top: xpx? also vertical align never ever seems to
do anything in IE

thanks and regards in advance for your help

Apr 12 '06 #1
0 1387

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Quentin Huo | last post: by
4 posts views Thread by Don Wash | last post: by
reply views Thread by info | last post: by
7 posts views Thread by Smokey Grindle | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.