Forum Moderators: not2easy
<input type="text" name="srch_fld"_ id="srch_fld" class="txt_input">
<textarea name="profile" id="profile" class="txt_area"></textarea>
.txt_input { margin:auto; text-align: center; }
.txt_area { text-align: left; }
Actually, you shouldn't have to do anything with .txt_area, it should naturally align left unless you have some parent container causing it to center.
absolute positioning would go like this:
<div style="position:relative;height:A units"><input1 style="position:absolute;left:0;"><input2 style="position:absolute;width:B units;left:50%;margin-left:-B/2 units;"></div>
[edited by: Xapti at 2:36 am (utc) on Sep. 30, 2007]