how do you center buttons in css

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