How to make <a href=""> link look like a button?

GeekedOut picture GeekedOut · Dec 2, 2011 · Viewed 386.5k times · Source

I have this button image:
enter image description here

I was wondering whether it would be possible to make a simple <a href="">some words</a> and style that link to appear as that button?

If it is possible, how do I do that?

Answer

Declan Cook picture Declan Cook · Dec 2, 2011

Using CSS:

.button {
    display: block;
    width: 115px;
    height: 25px;
    background: #4E9CAF;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    line-height: 25px;
}
<a class="button">Add Problem</a>

http://jsfiddle.net/GCwQu/