CSS Buttons

by Brian Duffey

HTML

<div class="button aqua">
    <div class="glare"></div>Click Here</div>
<br />
<input type="button" class="new-aqua" value="Login">
    <button class="push_button red">Push the button</button>
<a href="javascript:void(0);" class="push_button blue">Push the button</a>

CSS

/* First button */
.button {
    width: 120px;
    height: 24px;
    padding: 5px 16px 3px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    border: 2px solid #ccc;
    position: relative;
    /* Label */
    font-family: Lucida Sans, Helvetica, sans-serif;
    font-weight: 800;
    color: #fff;
    text-shadow: rgba(10, 10, 10, 0.5) 1px 2px 2px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.aqua {
    background-color: rgba(60, 132, 198, 0.8);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 90%, from(rgba(28, 91, 155, 0.8)), to(rgba(108, 191, 255, .9)));
    border-top-color: #8ba2c1;
    border-right-color: #5890bf;
    border-bottom-color: #4f93ca;
    border-left-color: #768fa5;
    -webkit-box-shadow: rgba(66, 140, 240, 0.5) 0px 10px 16px;
    -moz-box-shadow: rgba(66, 140, 240, 0.5) 0px 10px 16px;
    /* FF 3.5+ */
}
.button .glare {
    position: absolute;
    top: 0;
    left: 5px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    height: 1px;
    width: 142px;
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.25);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 95%, from(rgba(255, 255, 255, 0.7)), to(rgba(255, 255, 255, 0)));
}
/* Second button */
.new-aqua {
    width: 255px;
    height: 35px;
    background: #cde;
    border: 2px solid #ccc;
    border-color: #8ba2c1 #5890bf #4f93ca #768fa5;
    font: 600 16px/1 Lucida Sans, Verdana, sans-serif;
    color: #fff;
    text-shadow: rgba(10, 10, 10, 0.5) 1px 2px 2px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border-radius: 16px;
    -moz-border-radius: 16px;
    -webkit-border-radius: 16px;
    box-shadow: 0 10px 16px rgba(66, 140, 240, 0.5), inset 0 -8px 12px 0 #6bf, inset 0 -8px 0 8px #48c, inset 0 -35px 15px -10px #7ad;
    -moz-box-shadow: 0 10px 16px rgba(66, 140,...