How to Create Attractive Profile Card 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=Play&display=swap');
*{
box-sizing: border-box;
}
html{
height: 100%;
}
body {
font-family: Arial, sans-serif;
height: 100%;
background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}
.section1{
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.card{
display: flex;
flex-direction:row;
justify-content: center;
border-radius: 50px;
width:700px;
height:400px;
padding:40px 20px;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
background-color: rgba(255,255,255, 0.30);
backdrop-filter: blur(0px);
}
.cardbg{
z-index:0;
position: absolute;
border-radius: 50px;
width:650px;
height:400px;
margin-top:50px;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
background-color: rgba(255,255,255,.3);
backdrop-filter: blur(10px);
}
.cardin1{
display: flex;
flex-direction:column;
align-items:left;
width:30%;
padding:0 10px;
}
.cardin1 img{
width: 130px;
height: 130px;
border-radius: 50%;
margin:10px 0;
border: 5px solid #fff;
object-fit: cover;
}
.cardin2 h2{
margin:2px 0;
font-family: 'Play', sans-serif;
font-size: 25px;
}
.cardin2 p{
margin:10px 0;
}
.cardin2 h6{
margin:2px 0;
font-size:12px;
}
.cardin2{
display: flex;
flex-direction:column;
justify-content: center;
width:70%;
}
.sicons{
display: flex;
flex-direction: row;
margin:12px 0;
}
.sicons i{
background-color: #121212;
margin: 2px 4px;
padding: 10px;
border-radius:30px;
color:rgba(255,255,255, 0.90);
font-size:20px;
transition: .5s;
box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
}
.button{
margin:12px 0;
display: flex;
}
.button button:nth-child(1){
font-size:16px;
padding:15px 40px;
background-color: #121212;
border: none;
margin:0 4px;
color: #fff;
border-radius: 5px;
transition: .5s;
}
.button button:nth-child(2){
font-size:16px;
padding:15px 40px;
background-color: #fff;
border: none;
margin:0 4px;
color: #121212;
border-radius: 5px;
transition: .5s;
box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}
.sicons i:hover{
transform: scale(1.1);
cursor: pointer;
}
.button button:hover{
transform: scale(1.1);
cursor: pointer;
}
@media only screen and (max-width: 630px) {
.card{
width:98%;
flex-direction:column;
height: fit-content;
}
.cardbg{
display: none;
}
}
.credit a{
text-decoration: none;
color: #121212;
font-weight: 800;
}
.credit{
color: #121212;
text-align: center;
margin-top: 10px;
font-family: Verdana,Geneva,Tahoma,sans-serif;
}
Thank you for reading our blog. If you face any problem in Creating a Attractive 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.
إرسال تعليق
Thank you
Learning robo team