Mungkin sudah banyak dan sering sobat jumpai Tutorial tentang Membuat Tombol Demo dan Download dari blog sahabat lain, nah kali ini saya ingin berbagi tutorial membuat tombol Demo dan Download ala blog ini :)
Biasanya tombol ini digunakan untuk berbagi template atau Demo dari tutorial..
Untuk tampilannya nantinya akan seperti ini :
Tahap pembuatannya :
Tambahkan kode di bawah ini sebelum
]]></b:skin>
atau <style>
/* -- Rifan Tombol --*/
.button{float:left;list-style:none;text-align:center;width: 100%;margin:5px 0;padding:0;font-size:14px;clear:both;}
.button ul {margin:0;padding:0}
.button li{display:inline;margin:0;padding:0}
.button li a {color:#fff}
.download {
cursor:pointer;
margin:10px 0px;
background:#479ECD;
padding:10px 15px;
margin:4px 2px;
font:bold 16px Arial,Sans-Serif;
color:#fff;
text-decoration:none;
outline:none;
text-shadow:0px -1px 0px #297EB9;
-webkit-border-radius:5px;
-moz-border-radius:5px;
border-radius:5px;
-webkit-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #297EB9,
0px 5px 8px rgba(0,0,0,0.4);
-moz-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #297EB9,
0px 5px 8px rgba(0,0,0,0.4);
box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #297EB9,
0px 5px 8px rgba(0,0,0,0.4);
}
.download:hover {
-webkit-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.4),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #297EB9,
0px 5px 8px rgba(0,0,0,0.4);
-moz-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.4),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #297EB9,
0px 5px 8px rgba(0,0,0,0.4);
box-shadow:inset 0px 0px 20px rgba(255,255,255,0.4),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #297EB9,
0px 5px 8px rgba(0,0,0,0.4);
}
.download:active {
position:relative;
top:2px;
-webkit-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 1px 0px #297EB9,
0px 3px 3px rgba(0,0,0,0.4);
-moz-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 1px 0px #297EB9,
0px 3px 3px rgba(0,0,0,0.4);
box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 1px 0px #297EB9,
0px 3px 3px rgba(0,0,0,0.4);
}
.demo {
cursor:pointer;
margin:10px 0px;
background:#A90606;
padding:10px 15px;
margin:4px 2px;
font:bold 16px Arial,Sans-Serif;
color:#fff;
text-decoration:none;
outline:none;
text-shadow:0px -1px 0px #770101;
-webkit-border-radius:5px;
-moz-border-radius:5px;
border-radius:5px;
-webkit-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #770101,
0px 5px 8px rgba(0,0,0,0.4);
-moz-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #770101,
0px 5px 8px rgba(0,0,0,0.4);
box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #770101,
0px 5px 8px rgba(0,0,0,0.4);
}
.demo:hover {
-webkit-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.4),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #770101,
0px 5px 8px rgba(0,0,0,0.4);
-moz-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.4),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #770101,
0px 5px 8px rgba(0,0,0,0.4);
box-shadow:inset 0px 0px 20px rgba(255,255,255,0.4),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 3px 0px #770101,
0px 5px 8px rgba(0,0,0,0.4);
}
.demo:active {
position:relative;
top:2px;
-webkit-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 1px 0px #770101,
0px 3px 3px rgba(0,0,0,0.4);
-moz-box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 1px 0px #770101,
0px 3px 3px rgba(0,0,0,0.4);
box-shadow:inset 0px 0px 20px rgba(255,255,255,0.3),
inset 0px -1px 0px rgba(255,255,255,0.3),
0px 1px 0px #770101,
0px 3px 3px rgba(0,0,0,0.4);
}
Untuk penggunaanya pada postingan (menggunakan metode HTML)
<div style="text-align: center;">
<ul class="button">
<li><a class="demo" href="http://ngudang.blogspot.com/" target="_blank">Demo</a></li>
<li><a class="download" href="http://ngudang.blogspot.com/" target="_blank">Download</a></li>
</ul>
</div>
<div class="clear"></div>
wah pas banget gan saya juga lagi cari ini.. ijin coba :o
ReplyDeleteCoba Dulu Gan ^_^
ReplyDeletenice post aja gan, ane udah pasang :D
ReplyDeleteNice Bang :v
ReplyDeleteKunjungi Juga : http://rickiberbagi.blogspot.com/
Makasih gan Ane Coba \o/
ReplyDeleteKeren Tombol Demonya
ReplyDelete