Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

align / formatting form object 1

Status
Not open for further replies.

styleBunny

Technical User
Jun 20, 2002
133
AU
hi guys.

i am trying to align my form text box and form submit button to the middle of a cell in a html table. but reguarless of what i do it will default to the top of the cell rather than the middle of the cell (vertically) is there somethinsg im missing?

paul.
 
can i have the cell code?

Known is handfull, Unknown is worldfull
 
<table width=&quot;750&quot; height=&quot;44&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;tblQB&quot;>
<tr>
<td><img src=&quot;images/qb/qb_01.gif&quot; width=&quot;88&quot; height=&quot;44&quot;></td>
<td width=&quot;250&quot; valign=&quot;middle&quot; background=&quot;images/qb/qb_02.gif&quot;><form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;&quot;>
<input type=&quot;text&quot; name=&quot;textfield&quot;>
<input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Submit&quot;>
</form></td>
<td><img src=&quot;images/qb/qb_03.gif&quot; width=&quot;176&quot; height=&quot;44&quot;></td>
<td><img src=&quot;images/qb/qb_04.gif&quot; width=&quot;104&quot; height=&quot;44&quot;></td>
<td><img src=&quot;images/qb/qb_05.gif&quot; width=&quot;132&quot; height=&quot;44&quot;></td>
</tr>
</table>
 
<form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;&quot;>
<table width=&quot;750&quot; height=&quot;44&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; id=&quot;tblQB&quot;>
<tr>
<td><img src=&quot;images/qb/qb_01.gif&quot; width=&quot;88&quot; height=&quot;44&quot;></td>
<td width=&quot;250&quot; valign=&quot;middle&quot; background=&quot;images/qb/qb_02.gif&quot;>
<input type=&quot;text&quot; name=&quot;textfield&quot;>
<input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Submit&quot;>
</td>
<td><img src=&quot;images/qb/qb_03.gif&quot; width=&quot;176&quot; height=&quot;44&quot;></td>
<td><img src=&quot;images/qb/qb_04.gif&quot; width=&quot;104&quot; height=&quot;44&quot;></td>
<td><img src=&quot;images/qb/qb_05.gif&quot; width=&quot;132&quot; height=&quot;44&quot;></td>
</tr>
</table>
</form>


i have just put the form tag outside, does it work now?

Known is handfull, Unknown is worldfull
 
it works! so simple, i always ove look things like that.
thanks so much, vbkris!
i would never have thought of that.

hehehe :)
paul.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top