CSS Kullanarak Facebook Butonu Oluşturma

Rooster

only business
Legend Member
Katılım
10 Ağu 2019
Konular
727
Mesajlar
3,205
Çözümler
314
Tepkime puanı
4,994
Konum
Milano
Bu yazımızda CSS kullanarak basit bir Facebook buttonu oluşturacağız. Örneğimizi oluşturduğumuzda aşağıdaki Facebook butonu görüntüsünü oluşturmuş olacağız.

1586029417209.png

Kodlar:
Kod:
< !doctype html>
<html>
<head>
<style>
.btn6 {
-moz-box-shadow:inset 0px 1px 5px 0px #7a8eb9;
-webkit-box-shadow:inset 0px 1px 5px 0px #7a8eb9;
box-shadow:inset 0px 1px 5px 0px #7a8eb9;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #637aad), color-stop(1, #5972a7));
background:-moz-linear-gradient(top, #637aad 5%, #5972a7 100%);
background:-webkit-linear-gradient(top, #637aad 5%, #5972a7 100%);
background:-o-linear-gradient(top, #637aad 5%, #5972a7 100%);
background:-ms-linear-gradient(top, #637aad 5%, #5972a7 100%);
background:linear-gradient(to bottom, #637aad 5%, #5972a7 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#637aad', endColorstr='#5972a7',GradientType=0);
background-color:#637aad;
-moz-border-radius:4px;
-webkit-border-radius:4px;
border-radius:4px;
border:2px solid #314179;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Arial;
font-size:22px;
font-weight:bold;
padding:18px 49px;
text-decoration:none;
}
.btn6:hover {
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #5972a7), color-stop(1, #637aad));
background:-moz-linear-gradient(top, #5972a7 5%, #637aad 100%);
background:-webkit-linear-gradient(top, #5972a7 5%, #637aad 100%);
background:-o-linear-gradient(top, #5972a7 5%, #637aad 100%);
background:-ms-linear-gradient(top, #5972a7 5%, #637aad 100%);
background:linear-gradient(to bottom, #5972a7 5%, #637aad 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#5972a7', endColorstr='#637aad',GradientType=0);
background-color:#5972a7;
}
.btn6:active {
position:relative;
top:1px;
}
</style>
</head>

<body>
<button class="btn6">Facebook</button>
</body>
</html>
 
Üst