As title says- I'm setting anchor and button to flex but their sizes are different. Why does this happen? How can I achieve same visual on both elements with auto width?
a,
button {
display: flex;
align-items: center;
justify-content: center;
width: auto;
background: orange;
margin-bottom: 20px;
padding: 10px;
height: 50px;
margin: 0;
}
<a href="#">asdf</a>
<button>asdf</button>