نحوه ی ساخت این دکمه ها در سایت چطوره؟

moein921

کاربر عضو
لینک توضیحات هستش



این هم نمونه سایت هست!



فقط دوستان لطفا نحوه ی استفاده در وردپرس رو برای عموم بگین که همه بتونن استفاده کنن

ممنون و تشکر

 

Mohammad

مدیر انجمن
پرسنل مدیریت
این کد رو درون CSS قالب خودتون قرار بدید(فایل style.css)

.button
{
width:200px;
margin:100px auto
}
.button a
{
display:block;
height:50px;
width:200px;
color:white;
font:17px/50px Tahoma,Geneva,sans-serif;
text-decoration:none;
text-align:center;
text-transform:uppercase;
background:#00b7ea;
background:-moz-linear-gradient(top,#00b7ea 0%,#009ec3 100%);
background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#00b7ea),color-stop(100%,#009ec3));
background:-webkit-linear-gradient(top,#00b7ea 0%,#009ec3 100%);
background:-o-linear-gradient(top,#00b7ea 0%,#009ec3 100%);
background:-ms-linear-gradient(top,#00b7ea 0%,#009ec3 100%);
background:linear-gradient(top,#00b7ea 0%,#009ec3 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00b7ea',endColorstr='#009ec3',GradientType=0)
}
.button a,p
{
-webkit-border-radius:10px;
-moz-border-radius:10px;
border-radius:10px;
-webkit-box-shadow:2px 2px 8px rgba(0,0,0,0.2);
-moz-box-shadow:2px 2px 8px rgba(0,0,0,0.2);
box-shadow:2px 2px 8px rgba(0,0,0,0.2)
}
p
{
background:#222;
display:block;
height:40px;
width:180px;
margin:-50px 0 0 10px;
text-align:center;
font:12px/45px Tahoma,Geneva,sans-serif;
color:#fff;
position:absolute;
z-index:-1;
-webkit-transition:margin 0.5s ease;
-moz-transition:margin 0.5s ease;
-o-transition:margin 0.5s ease;
-ms-transition:margin 0.5s ease;
transition:margin 0.5s ease
}
.button:hover .bottom
{
margin:-10px 0 0 10px
}
.button:hover .top
{
margin:-80px 0 0 10px;
line-height:35px
}
.button a:active
{
background:#00b7ea;
background:-moz-linear-gradient(top,#00b7ea 36%,#009ec3 100%);
background:-webkit-gradient(linear,left top,left bottom,color-stop(36%,#00b7ea),color-stop(100%,#009ec3));
background:-webkit-linear-gradient(top,#00b7ea 36%,#009ec3 100%);
background:-o-linear-gradient(top,#00b7ea 36%,#009ec3 100%);
background:-ms-linear-gradient(top,#00b7ea 36%,#009ec3 100%);
background:linear-gradient(top,#00b7ea 36%,#009ec3 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00b7ea',endColorstr='#009ec3',GradientType=0)
}
.button:active .bottom
{
margin:-20px 0 0 10px
}
.button:active .top
{
margin:-70px 0 0 10px
}





برای نمایش از کد زیر استفاده کنید در ویرایشگرتون:

کد:
<div class="button">
<a href="#">دانلود کنید</a>
<p class="top">برای شروع کلیک کنید</p>
<p class="bottom"> حجم فایل : 1.5 مگابایت</p>
</div>
 
بالا