Skip to main content
March 4, 2014
Question

form imbedding with custom CSS to center submit button even when resizing browser

  • March 4, 2014
  • 1 reply
  • 820 views
I'm trying to build a form to imbed onto our site where the submit button is always centered. It has 2 rows and 3 columns. Aligning it to the center simply doesn't do it.  When looking at it on a phone all the field react and turn into one column but the submit button is way to the right. What CSS can I add so it is always in the center?

Thanks
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

March 7, 2014

in your css for the button do

margin-left: auto;

margin-right: auto;

width: ___px;

with the width of your button in pixels