Adding Social media buttons on Website Side bar:
in Youtube:
https://www.youtube.com/watch?v=dQFdr1L4CEo&t=40s
Copy this html code:
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Social Media Icons</title>
</head>
<body>
<div class="icon-bar">
<a href="#" class="facebook"><i class="fa fa-facebook"></i></a>
<a href="#" class="google"><i class="fa fa-google"></i></a>
<a href="#" class="youtube"><i class="fa fa-youtube"></i></a>
<a href="#" class="twitter"><i class="fa fa-twitter"></i></a>
<a href="#" class="whatsapp"><i class="fa fa-whatsapp"></i></a>
</div>
</body>
</html>
Copy this css file:
.icon-bar{
position: fixed;
margin-top: 200px;
}
.icon-bar a{
display: block;
text-align: center;
padding: 16px;
margin: 10px;
transition: all 0.3s ease;
color: white;
font-size: 20px;
}
.icon-bar a:hover{
color: black;
}
.facebook{
background-color: #3B5998;
color: white;
}
.twitter{
background-color: #55ACEE;
color: white;
}
.google{
background-color: #dd4b39;
color: white;
}
.whatsapp{
background-color: #008000;
color: white;
}
.youtube{
background-color: #bb0000;
color: white;
}
in Youtube:
https://www.youtube.com/watch?v=dQFdr1L4CEo&t=40s
Copy this html code:
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Social Media Icons</title>
</head>
<body>
<div class="icon-bar">
<a href="#" class="facebook"><i class="fa fa-facebook"></i></a>
<a href="#" class="google"><i class="fa fa-google"></i></a>
<a href="#" class="youtube"><i class="fa fa-youtube"></i></a>
<a href="#" class="twitter"><i class="fa fa-twitter"></i></a>
<a href="#" class="whatsapp"><i class="fa fa-whatsapp"></i></a>
</div>
</body>
</html>
Copy this css file:
.icon-bar{
position: fixed;
margin-top: 200px;
}
.icon-bar a{
display: block;
text-align: center;
padding: 16px;
margin: 10px;
transition: all 0.3s ease;
color: white;
font-size: 20px;
}
.icon-bar a:hover{
color: black;
}
.facebook{
background-color: #3B5998;
color: white;
}
.twitter{
background-color: #55ACEE;
color: white;
}
.google{
background-color: #dd4b39;
color: white;
}
.whatsapp{
background-color: #008000;
color: white;
}
.youtube{
background-color: #bb0000;
color: white;
}
Comments
Post a Comment