keeping table elements vertically centered

This is naturally centered in most browsers, but in safari it top aligns within table

        <div align="left"> &nbsp;&nbsp;
          <input type="text" align="absmiddle" name="search" value="<?php echo str_replace("+"," ",$search); ?>" style='width:130px' maxlength="255">
          <input name="submit" type="submit"  align="absmiddle" style=";text-align:center"    onClick="this.form.keywords.value =; this.form.action = '';" value="health">

I have tried a few things like <td valign="middle"...> but no joy...
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi macuser777,
safari works differently.
If you can not make it middle then you can try <table vspace="somenumber">

Perhaps the DIV is messing it up.  Safari may render the height differently perhaps?  Some ideas...

<div align="left" style="vertical-align: middle">
<div align="left" valign="middle">

Try <div align="left" style="border: 1px solid red"> to see how the DIV is rendering in each browser.  Perhaps that will shed some light.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
macuser777Author Commented:
Found the problem.

hendrim led me to it...but it wasn't the divs. I started taking things out 1 by 1 [starting with the div] and it was misalligning because there was a

<form method="get">
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

macuser777Author Commented:
[cut me off again...safari problem!]


macuser777Author Commented:
lol... oh boy... let's try again...

[cut me off again...safari problem!]


macuser777Author Commented:
ach! - I reported this problem about a year ago....and </form> within the table. It's fine in all my browsers now :) vspace didn't work ...sent all contents lower... but it's nice to learn a new tag too.   Thanks,  macuser
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.