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.
Kodlar:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | < !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> |