A profile card contains the person’s details like photos, about, some social media icons like Facebook, Twitter, Instagram, and LinkedIn to contact them, and some other information about the person. A profile card is used as an identity of a specific person. By placing the profile card on the web page, the user can contact the person easily.
In this blog (Responsive Profile Card Design), there is a card at the center of the page with a person’s profile photo at the top center of the card. The hover effect is used in every icon. There are two buttons below to the social media icons. This Profile Card Design is made responsive by using the media query property.
The source code of this Responsive Profile Card Design is given below, if you want the source code of this program, you can copy it. You can use this Responsive Profile Card Design code with your creativity and can take this profile card to the next level.
Responsive Profile Card Design [Source Code]
To make this website (Responsive Profile Card Design), you need to create two files: an HTML file and 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.
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
body{
font-family: Arial;
background: #9D50BB;
background: -webkit-linear-gradient(to right, #6E48AA, #9D50BB);
background: linear-gradient(to right, #6E48AA, #9D50BB);
color: #fff;
line-height: 20px;
}
img{
height: 100px;
margin-top: 25px;
position: absolute;
z-index: 2;
border: 5px solid #6E48AA;
}
.photo{
border-radius: 50%;
margin-left: 47%;
}
.profile{
display: inline-block;
border: 2px solid transparent;
box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
max-width: 75%;
height: 300px;
margin-top: 85px;
margin-left: 100px;
border-radius: 20px;
padding: 70px;
background: #12192c;
}
.about{
line-height : 1.6;
}
.social-icons{
display: flex;
align-items: center;
justify-content: space-around;
margin-top: -130px;
padding: 180px;
font-size: 40px;
flex-direction: row;
color: #4776E6;
}
.share-btn:hover{
cursor: pointer;
transition: all ease-in-out 300ms;
transform: translate(0px, -5px) scale(1);
}
.buttons{
display: flex;
align-items: center;
justify-content: space-around;
margin-top: -20%;
padding: 100px;
}
.contact, .download{
text-decoration: none;
border: none;
padding: 7px;
border-radius: 5px;
text-align: center;
width: 100px;
background: #8E54E9;
cursor: pointer;
margin: 10px;
padding: 15px;
color: #6E48AA;
font-weight: 900;
}
@media only screen and (max-width: 1000px){
.profile{
margin-left: 50px;
width:90%;
}
.share-btn{
font-size: 25px;
display: flex;
justify-content: space-between;
padding: 20px;
margin-top: -45px;
}
.buttons{
margin-top: -250px;
}
}
Thank you for reading our blog. If you face any problem in creating this Responsive Profile Card Design using HTML & CSS, then contact us or comment us. We’ll try to provide a solution to your problem as soon as possible.
Post a Comment
Thank you
Learning robo team