how do you center buttons in css

CSS
<div style="text-align:center;">
    <button>button1</button>
    <button>button2</button>
</div>
Source

Also in CSS: