Avatar of David Schure
David Schure
 asked on

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>
                    
                    <div class="mymail">
                        <input type="text" name="postal_code" value="" maxlength="10" placeholder="Postal Code"/>
                    </div>
                    <div class="mymail">
                        <input type="text" name="email_address" value="" maxlength="100" placeholder="E-Mail"/>
                    </div>
                    <div class="divider" style="height: 50px"></div>
                    <div class="col-md-12">                        
                        <input class="sub-btn p-btn-medium" type="submit"></input>
                    </div>
                </div>
            </form>

Open in new window


.sub-btn,
.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

CSS

Avatar of undefined
Last Comment
David Schure

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
David S.

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Rob

change the display: inline-block to display: block;
David Schure

ASKER
Thank you David S.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23