I want to write a CSS that will make both a button and a buttons similar to material-design. I wrote styles, but if you apply styles to the a element, it becomes below the button one pixel. Why?
.material-button { display: inline-block; background-color: #507299; border: none; border-radius: 2px; padding-left: 16px; padding-right: 16px; height: 36px; line-height: 36px; white-space: nowrap; font-family: RobotoMedium; font-size: 14px; /*text-align: center;*/ text-transform: uppercase; color: #ffffff; } .material-button:hover, .material-button:visited, .material-button:link, .material-button:active { color: #ffffff; text-decoration: none; } <a role="button" class="material-button" > Запись </a> <button type="button" class="material-button" > Копировать </button>