CSS Card Coding
<style>
*{
margin: 0%;
padding: 0%;
}
.main{
width: 100%;
height: 100vh;
background-color: #bcdee7;
}
.card{
background: #ffffff;
position: relative;
width: 288px;
height: 54vh;
margin: auto;
top: 85px;
border-radius: 3px;
box-shadow: 0px 5px 10px 0px #828282;
}
.card .avatar{
margin-left: 45px;
position: relative;
width: 144px;
height: 35vh;
}
.avatar .avatar-logo{
width: 100%;
height: 21vh;
border-radius: 50%;
}
.avatar-logo img{
width: 70px;
height: 70px;
position: relative;
margin-left: 65px;
margin-top: 20px;
border-radius: 50%;
box-shadow: 0px 1px 4px 2px #828282;
}
.avatar-logo .circle{
width: 15px;
height: 15px;
border-radius: 50%;
border: 2px solid white;
margin-left: 117px;
top: -22px;
position: relative;
}
.circle .one{
width: 100%;
height: 50%;
background-color: skyblue;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
.circle .two{
width: 100%;
height: 50%;
background-color: yellow;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
.avatar-name{
margin: auto;
position: relative;
bottom: 2px;
}
.avatar-name h3{
text-align: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 16px;
color: tomato;
margin-left: 56px;
}
.avatar-name h4{
text-align: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
width: 100px;
font-size: 15px;
margin-left: 50px;
line-height: 25px;
margin-top: 6px;
}
.description{
width: 100%;
margin-top: -35px;
}
.description p{
text-align: center;
font-family: sans-serif;
font-size: 15px;
font-weight: 600;
color: #989898;
line-height: 25px;
}
.social{
width: 77px;
margin: auto;
margin-top: 40px;
padding-bottom: 40px;
}
.social ion-icon{
width: 21%;
}
.social a ion-icon{
color: red;
}
</style>
<div class="main">
<div class="card">
<div class="avatar">
<div class="avatar-logo">
<img src="Nizakat Ali 2.jpg" alt="">
<div class="circle">
<div class="one"></div>
<div class="two"></div>
</div>
<div class="avatar-name">
<h3>Nizakat Ali</h3>
<h4>Better Visuals</h4>
</div>
</div>
</div>
<div class="description">
<p>It takes monumental improvement for us to change how we live our lives. Design is the way we access that improvement.</p>
</div>
</div>
<div class="social">
<a href="https://www.facebook.com" target="_blank"><ion-icon name="logo-facebook"></ion-icon></a>
<a href="https://www.twitter.com" target="_blank"><ion-icon name="logo-twitter"></ion-icon></a>
<a href="https://www.github.com" target="_blank"><ion-icon name="logo-github"></ion-icon></a>
<a href="https://www.instagram.com" target="_blank"><ion-icon name="logo-instagram"></ion-icon></a>
</div>
</div>
</div>
Comments
Post a Comment