Form button not centering

I am having a problem with the submit button centering....

<form id="myform" class="contact-form" action="contact.php" method="post" >
                <div class="row">
                    <div class="mymail">
                        <input type="text" name="name" value="" maxlength="100" placeholder="Name"/>
                    <div class="mymail">
                        <input type="text" name="postal_code" value="" maxlength="10" placeholder="Postal Code"/>
                    <div class="mymail">
                        <input type="text" name="email_address" value="" maxlength="100" placeholder="E-Mail"/>
                    <div class="divider" style="height: 50px"></div>
                    <div class="col-md-12">                        
                        <input class="sub-btn p-btn-medium" type="submit"></input>

Open in new window

.p-btn {
    margin-right: auto;
    margin-left: auto;
	display: inline-block;
    font-size: 15px;
    line-height: 25px;
    letter-spacing: 0.5px;
    font-weight: 300;
    padding: 6px 25px;
    border: 1px solid #3c3c3c;

Open in new window

David SchureAsked:
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.

David S.Commented:
Auto margins only center block-level elements (those with an outer display type of block). Inline-blocks have an inner type of block but an outer one of inline. I suggest giving a "buttons" class to its parent and giving "text-align:center" to ".buttons" in your stylesheet.

Also <input> element are always empty and so should not have an end tag.  I recommend using the <button> element for buttons in forms instead of the <input> element.
                    <div class="col-md-12 buttons">                        
                        <button class="sub-btn p-btn-medium" type="submit">Submit</button>

Open in new window

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
RobOwner (Aidellio)Commented:
change the display: inline-block to display: block;
David SchureAuthor Commented:
Thank you David S.
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.