How to make button in middle of the webpage?


Replace this line with your code.


vertical or horizontal? Horizontal is easy:

div {
    margin: 0 auto;

this will add maximum possible amount of margin on the left and right, causing the button to center. As for vertical see this centering guide


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.