Gradient Border Button

by kizer

HTML

<div id="container">
    <h1>Gradient Stroke Button!</h1>
</div>

CSS

html {
    background: #eee;
}

#container {
    background-image: -webkit-linear-gradient(#da7c0c, #825522);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    margin: 80px auto;
    padding: 20px;
    position: relative;
    width: 150px;
}

#container * {
    position: relative;
}

#container:before:hover {
    background: white;
}

h1 {
    font-size: 13px;
    text-align: center;
    color: black;
    font-family: helvetica;
    text-shadow: 0 1px 0 rgba(255,255,255, .25);
    font-weight: bold;
}

#container::before {
    background: white;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    bottom: 1px;
    left: 1px;
    position: absolute;
    right: 1px;
    top: 1px;
    content: '';
    background: #f78d1d;
    background: -webkit-gradient(linear, left top, left bottom, from(#faa51a), to(#f47a20));
    /* border: 1px solid black */;
    box-shadow: 0 1px 0px rgba(255,255,255, .45) inset;
}