The button is 2px bigger then the a tag with same styles. Any ideas why is it doing it and how to fix it?
<a href="">Some Text</a>
<button> Some Text</button>
a, button {
background-color: red;
border: none;
text-decoration: none;
font-size: 14px;
line-height: 14px;
font-family: Verdana;
display: inline-block;
color:black;
padding:0;
}
The button has padding.
Set
padding : 0;on the button and they will look the sameFirefox has its own thing…
Try adding the following: