Why is the following CSS code not centering my button horizontally within a div element?
Why is the following CSS code not centering my button horizontally within a div element? It appears off-center in my webpage:
padding: 10px 20px;
<button class="btn">Click Me</button>
The button seems to be slightly towards the left side within the container. What am I missing in the CSS that is preventing the button from being perfectly centered?