New to coding and I’m trying to create any email sign up form the is here.
I can’t get the submit button to center, I’ve tried
text-align: center. Could anyone point me in the right direction of what I’m doing wrong with my CSS?
The easiest way would let the browser figure out which one is the actual center based on the element width, and you can achieve that easily with
#button-position simply add:
Then my personal suggestion would be to get rid of that fixed
width you have on both
#button-style and let it as big as its content.
padding on the button to play with spaces
Hope this helps.
@Marmiz very helpful thanks for the advice.