How to make Social Profile Card Design using HTML and CSS.[Source Code]
To make this website, you would like to make two files: an HTML file, a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.
/**
Hello Future Developer Thanks for Using learningrobo.com,
Check our website Regularly For New Snippets Post.
Share & Support us
**/
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@300&family=Nunito+Sans:opsz,wght@6..12,300&display=swap');
:root{
--bg:#ffffff;
}
body{
font-family: 'Mukta', sans-serif;
background:linear-gradient(to bottom,#ffffffd2, #6e899e);
}
.container{
min-height:100vh;
max-height: auto;
display:flex;
justify-content:center;
flex-direction: column;
align-items:center;
}
.flex-container{
display:flex;
flex-direction:column;
align-items:center;
width:300px;
height:530px;
background-color: #ffffff;
border-radius: 5px;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.top-container{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
width:calc(100% - 10px);
height:225px;
background-image: url("https://cdn.pixabay.com/photo/2017/02/02/22/08/tunnel-2033983_1280.jpg");
background-size:cover;
background-repeat:no-repeat;
background-position: center center;
border:5px solid #ffffff;
border-radius:5px;
}
.top-container img{
height:110px;
width:110px;
border-radius: 50%;
border:5px solid #f3f9ff;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
margin:220px 0px 0px 0px;
z-index: 1;
object-fit:cover;
}
.bottom-container{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
background-color:var(--bg);
width:100%;
height:calc(480px - 225px);
}
.bottom-container-icon i{
font-size:20px;
border-radius: 50%;
padding:10px;
margin:10px 2px 0 2px;
text-align: center;
transition:.5s;
}
.bottom-container-icon i:hover{
cursor: pointer;
background-color: #6e899e;
}
.bottom-container button{
margin:10px;
padding:10px;
width:80%;
border-radius:30px;
border: 3px solid #6e899e;
color:#111010;
background:var(--bg);
font-size:20px;
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
transition:.5s;
font-weight: 900;
}
.bottom-container button:hover{
cursor: pointer;
background-color:#6e899e;
border: 3px solid #151413c7;
}
.bottom-container h1{
margin:80px 0px 0px 0px;
}
.bottom-container h3{
margin:0px;
}
@media only screen and (max-width: 1024px){
.flex-container{
width:300px;
height:530px;
}
}
@media only screen and (max-width: 630px){
.flex-container{
width:300px;
height:530px;
}
}
.credit a{
text-decoration: none;
color: #121212;
font-weight: 800;
}
.credit{
color: #121212;
text-align: center;
font-family: Verdana,Geneva,Tahoma,sans-serif;
}
Thank you for reading our blog. If you face any problem in Creating a Social Profile Card Design using HTML and CSS., then contact us or comment to us. We’ll try to provide a solution to your problem as soon as possible.
Explore
Press The Key ' p ' and say ' read article ' our voice assistant read our article.
In Our older post it doesnot work we working on that.
In Our older post it doesnot work we working on that.
Post a Comment
Thank you
Learning robo team