How to make button in middle of the webpage?


#1


Replace this line with your code.


#2

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


#3

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