HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--fontawesome cdn link-->
<link
rel="stylesheet"
href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous"
/>
<!--external css link-->
<link rel="stylesheet" href="socialmediastyle.css" />
<title>The DeepMyt Show</title>
</head>
<body>
<div class="container">
<div class="social-icons">
<a class="icon" href="#">
<i class="fab fa-2x fa-facebook"></i>
</a>
<a class="icon" href="#">
<i class="fab fa-2x fa-instagram"></i>
</a>
<a class="icon" href="#">
<i class="fab fa-2x fa-github"></i>
</a>
<a class="icon" href="#">
<i class="fab fa-2x fa-linkedin"></i>
</a>
</div>
</div>
</body>
</html>
CSS CODE
body {
margin: 0;
padding: 0;
}
.container {
height: 280px;
padding: 20px;
padding-top: 40px;
text-align: center;
}
.social-icons {
height: 100px;
display: flex;
justify-content: center;
align-items: center;
margin: 150px;
}
.icon {
height: 50px;
width: 50px;
background: #f5f6fa;
border-radius: 40px;
margin: 10px;
box-shadow: 1px 4px 2px 2px #dcdde1;
line-height: 60px;
}
a i {
transition: all 0.03s linear;
}
a:hover i {
transform: scale(1.4);
}
.fa-facebook {
color: #4267b2;
}
.fa-instagram {
color: #e84393;
}
.fa-github {
color: #333;
}
.fa-linkedin {
color: #0097e6;
}
0 Comments