How to align the button in center

See this post for the same question: