What makes the text on a <button> element vertically centered?
It seems there is some magic around the <button> element that I don't understand. Consider this markup: <button class="button">Some Text</button> <div class="button">Some Text</div> And this CSS: .button{ background: darkgrey; height: 40px; border: 2px solid grey; width: 100%; box-sizing: border-box; font-size: 14px; font-family: helvetica; text-align: center; margin-bottom: 20px; /*I'm aware I could use this to center it*/ /*line-height: 40px;*/ } What makes the text in the button element vertically centered? Webkit seems to predefine a -webkit-box-align with a value of center for the <button