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