In this example, we use positioning and the transform property to vertically and horizontally center the button element: