Click to See Complete Forum and Search --> : button alignment in forms within table


justbarelysane
03-20-2006, 08:50 AM
I am having a problem with aligning our add to cart button on my company's website. Our shopping cart people gave us the code to have the button actually work, but now the button is staying put at the top of the cell that it's in. I've tried putting align and valign coding in the <tr> and <td> tags, I've tried using <p>, <span>, and <div> tags and nothing is working. I tried to specify the height of the cells and I've tried just purely using the code that our shopping cart people gave us (below). I tried putting the form code all on one line. Nothing's working. Any ideas? Here's the code:

<form method="POST" name="prodinfo" action="http://shop2.mailordercentral.com/SITENAME/itemadd.asp?additem=ITEMNUMBER"><input type="hidden" name="addtocart"><input type="image" value="cart" onclick="displaythis(this)" src="images/addcart.jpg" alt="Add this item to your cart" border="0" valign="bottom"><input type="hidden" name="txtquanto" value="1"></form>

Our add to cart buttons are in their own cells. As I said before, they work perfectly and do the job they're supposed to do, but they just don't align in the center of the cell. My coworker just noticed in Dreamweaver that the valign="bottom" says that it's not support by several versions of Netscape and IE, but I tried putting align codes everywhere else and nothing's worked, so...Help!

Fang
03-20-2006, 02:40 PM
border="0" valign="bottom" are not attributes of input
Can you give the complete table code?

pcthug
03-21-2006, 12:43 AM
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.4