[Solved] How do I align a button center of the web page? [closed]


Try wrapping the button in a div and giving that div a text-align property of center.

CSS:

#button-container {
  text-align: center;
}
<div id="button-container">
  <button>Center Me</button>
</div>

solved How do I align a button center of the web page? [closed]