I have a CSS class that makes my links look like pretty buttons. I would like to be able to apply the same style as the submit buttons and make them the same. The most difficult part is that the anchor tags should have an interval inside them, I don’t think that this is possible using the form submit buttons. So does anyone know how I can make the submit buttons match links?
Here is the CSS:
a.button {
background: transparent url('images/all_pages/bg_button_a.jpg') no-repeat scroll top right;
color: #FFF;
display: block;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:16px;
font-weight:bold;
height: 24px;
margin-right: 6px;
padding-right: 18px;
text-decoration: none;
}
a.button span {
background: transparent url('images/all_pages/bg_button_span.jpg') no-repeat;
display: block;
line-height: 14px;
padding: 5px 0 5px 18px;
}
a.button:hover {
background-position: bottom right;
}
a.button:hover span {
background-position: bottom left;
}
Thanks!
source
share