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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vertical button alignment problem 1

Status
Not open for further replies.

sarta

Programmer
Nov 3, 2006
29
How can I vertically align the 2 buttons displayed by the following html?

BTW I'm only concerned with firefox, and the below example can be seen at
Code:
<table>
 <tr>
   <td>
      <input value="google" type=button onclick="location.href='[URL unfurl="true"]http://www.google.com'">[/URL]
   </td>
   <td>
     <FORM name=f method=GET action="[URL unfurl="true"]http://www.google.com/search"[/URL] >
        <INPUT type=hidden name=q value="html">
        <input type=submit>
     </FORM>
   </td>
 </tr>
</table>
 
Your second button is inside a form element, which has a default margin at the bottom. Adding a style of margin-bottom: 0; to the form element would eliminate this margin and the two buttons would line up.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top