(CSS) Font Awesome İle Sabit Sosyal Paylaşım Butonları Oluşturun

  1. Ana Sayfa
  2. >
  3. Html-Css
  4. >
  5. (CSS) Font Awesome İle Sabit...


Font Awesome ile sitenize sosyal paylaşım butonları eklemek istemez misiniz ?
aşağıdaki örnek ile bunu kolayca anlayabilirsiniz ayrıca yazının sonunda vereceğimiz font awesome kodları bulabileceğiniz web adresi ile istediğiniz ikonu bulup kullanabileceksiniz…

<!DOCTYPE html>
<html>
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
<link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css”>
<style>
body {margin:0;height:2000px;}

.ikonlar {
position: fixed;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}

.ikonlar a {
display: block;
text-align: center;
padding: 16px;
transition: all 0.3s ease;
color: white;
font-size: 20px;
}

.ikonlar a:hover {
background-color: #000;
}

.facebook {
background: #3B5998;
color: white;
}

.twitter {
background: #55ACEE;
color: white;
}

.google {
background: #dd4b39;
color: white;
}

.linkedin {
background: #007bb5;
color: white;
}

.youtube {
background: #bb0000;
color: white;
}

</style>
<body>

<div class=”ikonlar”>
<a href=”#” class=”facebook”><i class=”fa fa-facebook”></i></a>
<a href=”#” class=”twitter”><i class=”fa fa-twitter”></i></a>
<a href=”#” class=”google”><i class=”fa fa-google”></i></a>
<a href=”#” class=”linkedin”><i class=”fa fa-linkedin”></i></a>
<a href=”#” class=”youtube”><i class=”fa fa-youtube”></i></a>
</div>

</body>
</html>

Demo Link
https://www.w3schools.com/code/tryit.asp?filename=FWWG4X295Q3P

Font Awesome Kodları
https://fontawesome.com/cheatsheet