Scripsit
aa**********@gmail.com:
I am hoping if there is a kludge in IE6 to make the textbox align with
the top label.
Do you want a kludge, or do you want a solution? And what is the problem?
"Aligning with" something isn't a very exact description.
<style>
You should post a URL, not snippets of code, and you should use valid
markup.
<div class="field" style="width:75px;">
<div class="top-label">From Date</div>
<input name="FromDate" type="text" style="width:100%;">
</div>
You should start from constructing logical, semantic markup. And valid
markup - you're even missing a closing </divtag here.
To associate a text with a field, use <labelmarkup.
Do not set widths in pixels - for all that you can know, 75 pixels might not
be enough even for the word "From".
Always set a width for an <inputbox in HTML. You don't want to accept
unknown browser defaults in situations where your CSS code gets ignored. So
use size="...", in addition to any eventual width setting in CSS.
If the input field is for what its name and label suggest, it's width should
be set to something that reflects the length of expected input. I hope your
form explains somewhere what the expected date format is. Generally, setting
size="..." in <inputwithout CSS settings is suitable for data that is
expected to be of fixed length, since HTML has a _more logical_ approach
here (allowing the width to be set in characters).
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/