View Full Version : Vertical Alignment of Form/Button in Table Cell Question

Jun 25th, 2009, 02:32 PM
I'm trying to reduce the amount of real estate that a form and button are taking up in my table. They are expanding the whole row and lining them up with the other contents isn't working in the CSS methods I've tried. Finally I tried reduce the font-size of the cell containing the form and button (all the way down to 1px) which gives the desired result... but I'm a bit concerned about implementing it into all the tables in the site because it seems a bit 'hacky'. Is there a better way to do this?

My Webpage (http://029c92a.netsolhost.com/abrasives/buffing2.php)

You'll see in the first table, final column containing the button, that the button and form and pushed up against the top of the cell and the other cells now have more padding.

In the second table, my "font-size:1px" has been applied and gives the desired result. Just curious if there is a better way to do this or if this is will be fine.

Jun 25th, 2009, 02:48 PM
In which browser you are viewing? I don't see any difference when viewed inFF2

Jun 25th, 2009, 03:37 PM
Yes, firefox looks fine here too. Safari is off though.