Trying to center a div containing a form in bootstrap

I have the following Bootstrap theme page:

If you click on "Place your order" the page will scroll down to that section.

I would like to centre the form div with the red border so it is in the middle of that section. I tried margin auto for left and right but nothing seems to budge the div.
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.

Tom BeckCommented:
You could add col-sm-push-4 or col-sm-offset-4 to the form's parent div.
<div style="border: 1px solid #E02F4A;" class="col-sm-4 col-sm-push-4 text-left">

Open in new window

"offset" uses margin to move the element, "push" uses left positioning.

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
mike99cAuthor Commented:
Thanks Tom, that did the trick, I have applied it here:

Before I award you all the points, I have since found another solution here:

I basically created a row then added empty columns either side of the form column. It's not as elegent as your solution but wanted to know your thoughts.
Tom BeckCommented:
If you were to have a grid of rectangles each with the col-sm-4 class to get three wide by whatever tall, then the second method would be the only way to go. But with the form sitting in the middle all by itself, adding col-ms-offset-push-4 means less markup for the same result. But in the grand scheme, not a significant difference. Your choice.
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.