How can I make my registration fields like this
How can I achieve this via CSS? I mean, that my textboxes should be aligned from label's end to the page's end...
EDIT
Here is my view part
<div id="member-search">
<h5>Last Name:</h5>
@Html.TextBox("member-last-name")
</div>
<div>
<h5>Pass:</h5>
@Html.TextBox("member-pass")
</div>
<input type="submit" value="Search" class="button"/>
</div>
In CSS I tried a lot, but with no success. width:auto doesn't help and I don't find solution for this. Thanks for help.
`s a fixed width, or put the whole thing in a table. There is no way that I know of to 1) have equal widths, 2) let the width be fluid and 3) not use a table all at the same time.
– Jon Sep 08 '11 at 08:08