why does a tag center image on this page

http://dev2.magickitchen.com/our-customers-test.html  -here, the only image not linked to another website is the Bentley logo.

All the images are centered except that one. The logo-item class gives it a text-align:center style, and I want them to be center.

It seems like the a tag is allowing that, and is the reason the bentley logo isn't center.  Why is that? I can add an empty a tag to the logos that aren't  linked, but that seems like a sloppy way to solve the problem.

Thanks for your help and advice.
Melody ScottAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

William FulksSystems Analyst & WebmasterCommented:
You can't use style="text-align:center" for an image. That's why it's not centering the image.

Melody ScottAuthor Commented:
I didn't use it on the image, it is used on the div. .box, .logo-item {
    border: medium none;
    display: inline-block;
    padding: 5px;
    text-align: center;
    width: 30%;
Melody ScottAuthor Commented:
It turns out that if I use a  style="margin: 0 auto;" on the image, it centers.

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
William FulksSystems Analyst & WebmasterCommented:
<div style="" class="logo-item"><img style="text-align:center;" class="responsive" src="images/logos/sized/Bentley-Logo.png" alt="Bentley Motors"></div>

You did put the style along with the img tag for the Bentley logo. None of the other images in that group have "style="text-align:center;" inside the img tag.
Melody ScottAuthor Commented:
This was the answer that worked. The expert who answered didn't give a solution.
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

From novice to tech pro — start learning today.