Simple Profile Card UI Design using HTML and CSS

Simple Profile Card UI Design using HTML and CSS

Simple Profile Card UI Design using HTML and CSS

In this article, you will learn how to create a simple profile card Ui design using HTML and CSS code. In the meantime, I have made a profile card design using bootstrap. Now is the time to create a beautiful profile card using only HTML and CSS.

If you are a beginner and want to create an HTML CSS card design then this article will help you. Here I have made this design for beginners only relying on HTML and CSS. Many times we see such profile designs in different applications or websites.  Along with this, various types of information, social media links, etc. are given. This type of CSS profile card design is also used in many blogs or free-lensing websites. PitangoUX is an end-to-end UX/UI service agency.

I have already shared the design of a Responsive Profile Card with you. However, this design is not Responsive it is just to create an idea about your profile card. If you want to create a Responsive Profile Card using HTML and CSS, you can try my previous design.

Below I have given a live demo that will help you to know how this profile works.

See the Pen
Responsive Profile Card UI
by Foolish Developer (@fghty)
on CodePen.

As you saw in the demo above here I first designed a web page. I made a small box on it. I have added images, social-media-icons, and various texts to this box. A shadow has been used here which has made this card design a bit brighter than the webpage.

First of all, I used a profile image here then gave the title and some basic description. Then here are the links on various social media for contact and two buttons at the bottom. All in all, it is a very simple and beautiful profile card design. You can easily make this design if you have a basic idea of HTML and CSS relationships.

Responsive Profile Card UI Design using HTML and CSS

Below I have shared the complete tutorial on how I designed this Html profile card. If you are a beginner then you must follow the tutorial below. Use the download button below the article to download the source code.

Step 1: Design the web page

 I designed the webpage using a small amount of CSS code below. Originally set the background color of the webpage here # d5e1ef and gave the font family.

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #d5e1ef;
Design the web page

Step 2: Create the basic structure of the profile card

I have created a box on the web page using the following HTML and CSS code. The width of this box is 340px and the min-height is 100px. Here I have used white as the background color and box-shadow. The box-shadow helped create a black shadow around this card which made it more attractive and brighter.

main {
    width: 340px;
    overflow: hidden;
    background-color: #fdfcfc;
    font-size: 16px;
    line-height: 22px;
    color: #000;
    border-radius: 7px;
    box-shadow: -4px -4px 20px rgba(0, 0, 0, 0.505);
    margin: 50px auto;
Create the basic structure of the profile card

Step 3: Add a profile image to the card

I added the image in this profile card using the HTML and CSS code below. As you can see above, first of all, I used an image here.

<section class=”top-card”>
  <img src=”ser.jpg” alt=”user picture”>
  <!– Menu item –>
.top-card {
    width: 100%;
    /* height: 200px; */
.top-card img {
    width: 100%;
Add a profile image to the card

Step 4: Add icons to the image

 Now I have added two icons to this card. One is the heart and the other is the menu bar icon. These two icons are floating on the image. Since these are icons of font-awesome, you must add font awesome CDN link in your Html file.

 <div class=”menu-icon”>
   <div class=”menu item1″><i class=”fas fa-heart”></i></div>
   <div class=”menu item2″><i class=”fas fa-bars”></i></div>
.top-card .menu-icon {
    position: relative;
    bottom: 13.7em;
    font-size: 17px;
    cursor: pointer;
.top-card .menu-icon .item1 {
    margin-left: 10px;
    margin-top: 15px;
    color: red;
.top-card .menu-icon .item2 {
   float: right;
   margin-right: 20px;
   margin-top: -10px;
   color: blue;
Add icons to the image

Step 5: Add title and basic information to the card

Using these codes I have added basic titles and some information. As you can see I used a title here in the demo above and gave some basic information. I have used the font size of that title as 22 px and the color is black. Text-align: center is used to place it in the middle.

<section class=”middle-card”>
  <h1>Anita Mondol</h1>
  <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Atque iure earum, molestiae voluptatibus amet minus dolore.</p>
h1 {
    font-size: 22px;
    color: #000;
    font-weight: 600;
    margin: 12px 0;
    text-align: center;
.middle-card, footer {
    margin: 5px 25px;
.middle-card {
    text-align: justify;
Add title and basic information to the card

Step 6: Add social media icons for contact

Now I have added its links on various types of social media. Here I have basically added five social media icons. I have used font-size 20px and color black of those icons.

Normally the color of the icons is black but it will change color whenever the icons are clicked and the mouse is moved. For this, I have added the hover color of each icon using CSS code.

   <a href=”#” class=”social-icon facebook”><i class=”fab fa-facebook-f”></i></a>
   <a href=”#” class=”social-icon twitter”><i class=”fab fa-twitter”></i></a>
   <a href=”#” class=”social-icon google”><i class=”fab fa-google”></i></a>
   <a href=”#” class=”social-icon github”><i class=”fab fa-github”></i></a>
   <a href=”#” class=”social-icon linkedin”><i class=”fab fa-linkedin”></i></a>
     <!– button –>
footer {
    text-align: center;
footer .social-icon {
    /* padding: 7%; */
    font-size: 20px;
    margin: 0 5%;
    color: rgba(0, 0, 0, .9);
.facebook:hover {color:#3b5999;}
.twitter:hover {color: #55acee;}
.google:hover {color: #dd4b39;}
.github:hover {color: #302f2f;}
.linkedin:hover {color: #0077B5;}
footer .links {
    border-top: 2px solid rgba(0, 0, 0, .1);
    text-align: center;
    margin-top: 10px;
    padding: 8px 0;
Add social media icons for contact

Step 7: Create two buttons in a simple profile card

At the end of it all, I used two buttons. As you can see, there are two buttons, one for contact and the other for hire. I have used the width of these buttons 110px and the height 36px. Here I have designed the two buttons separately. I have given blue as the background color of the first button and white as the background color of the second.

<section class=”links”>
  <button>Contact me</button>
  <button>Hire Me</button>
width: 110px;
height: 37px;
margin-top: 10px;
border-radius: 2px;
background: #1990cc;
font-size: 15px;
border: none;
color: white;
margin-left: 40px;
border: 2px solid #1990cc;
background: white;
color: black;
Responsive Profile Card UI Design using HTML and CSS

Hopefully from the tutorial above you have learned how to make this profile card design. I have already shown many types of responsive profile cards using HTML and CSS code.

You can see those designs if you like this simple profile card UI design. If there is any problem, you can definitely let me know by commenting.