I have a CSS class for styling buttons. When I apply it to an <input>
and an <a>
tag, the <a>
is a bit smaller than the <input>
. This problem occurs in Firefox (33), but in Chrome (38) it looks fine.
Here is a minimal example:
.my-button {
display: inline-block;
padding: 1em;
border-radius: 0.2em;
border: 1px solid #000;
line-height: 1em;
font-size: 13px;
text-decoration: none;
background-color: #ccc;
color: #000;
}
<input class="my-button" type="submit" value="Save">
<a class="my-button" href="#">Cancel</a>
You can see it also here: http://jsfiddle.net/tr4vbrha/4/