CSS3 Media Temple Button
Tombol ini benar-benar keren!!!
CSS
.button {
cursor:pointer;
background:#328EC5;
background:-webkit-linear-gradient(top, #74BCE6 0%, #328EC5 57%);
background:-moz-linear-gradient(top, #74BCE6 0%, #328EC5 57%);
background:-ms-linear-gradient(top, #74BCE6 0%, #328EC5 57%);
background:-o-linear-gradient(top, #74BCE6 0%, #328EC5 57%);
background:linear-gradient(top, #74BCE6 0%, #328EC5 57%);
padding:0.75em 1.5em;
font:normal 1em Calibri,Arial,Sans-Serif;
text-transform:uppercase;
color:#fff;
text-decoration:none;
text-shadow:0px -1px 0px rgba(0,0,0,0.3);
-webkit-box-shadow:
inset 0px 1px 0px rgba(255,255,255,0.5),
inset 0px -1px 0px rgba(0,0,0,0.4),
0px 1px 2px rgba(0,0,0,0.7);
-moz-box-shadow:
inset 0px 1px 0px rgba(255,255,255,0.5),
inset 0px -1px 0px rgba(0,0,0,0.4),
0px 1px 2px rgba(0,0,0,0.7);
box-shadow:
inset 0px 1px 0px rgba(255,255,255,0.5),
inset 0px -1px 0px rgba(0,0,0,0.4),
0px 1px 2px rgba(0,0,0,0.7);
-webkit-border-radius:0.7em;
-moz-border-radius:0.7em;
border-radius:0.7em;
border:none;
}
.button:hover {
background:#399BD6;
background:-webkit-linear-gradient(top, #88CEF7 0%, #399BD6 57%);
background:-moz-linear-gradient(top, #88CEF7 0%, #399BD6 57%);
background:-ms-linear-gradient(top, #88CEF7 0%, #399BD6 57%);
background:-o-linear-gradient(top, #88CEF7 0%, #399BD6 57%);
background:linear-gradient(top, #88CEF7 0%, #399BD6 57%);
-webkit-box-shadow:
inset 0px 1px 0px rgba(255,255,255,0.5),
inset 0px -1px 0px rgba(0,0,0,0.5),
0px 2px 4px rgba(0,0,0,0.4);
-moz-box-shadow:
inset 0px 1px 0px rgba(255,255,255,0.5),
inset 0px -1px 0px rgba(0,0,0,0.5),
0px 2px 4px rgba(0,0,0,0.4);
box-shadow:
inset 0px 1px 0px rgba(255,255,255,0.5),
inset 0px -1px 0px rgba(0,0,0,0.5),
0px 2px 4px rgba(0,0,0,0.4);
}
.button:active {
background:-webkit-linear-gradient(bottom, #88CEF7, #399BD6);
background:-moz-linear-gradient(bottom, #88CEF7, #399BD6);
background:-ms-linear-gradient(bottom, #88CEF7, #399BD6);
background:-o-linear-gradient(bottom, #88CEF7, #399BD6);
background:linear-gradient(bottom, #88CEF7, #399BD6);
-webkit-box-shadow:none;
-moz-box-shadow:none;
box-shadow:none;
}
HTML
<a class="button" href="#">Get Started</a>
3 Comments:
Nice Post Kang..
Try It yo .. ^_^
By Unknown, at Saturday, January 14, 2012 at 10:23:00 PM GMT+7
@[./Forbiden-403]: Yoooooo............. :)
By Taufik Nurrohman, at Friday, February 3, 2012 at 4:01:00 PM GMT+7
mas saya mau bikin button seperti punya mas ini yang ada dibawah emoticon itu kok gk bisa ya :'(
muncul yg ginian : Your HTML cannot be accepted: Attribute "CLASS" is not allowed in tag: A
apa emang gk bisa ya mas...... :'(
By Anonymous, at Wednesday, July 18, 2012 at 1:15:00 PM GMT+7
Post a Comment
<< Home