Cool Profile Card Design with HTML CSS

In this tutorial we will see how to make a Cool Profile Card Design with HTML and CSS. Simple CSS is used for this purpose, HTML code and CSS code is given.

HTML Code

HTML Code is given below.

<div class="card">
    <span class="level">PRO</span>
    <img src="picture.png" alt="John Doe" class='picture'>
    <h2>John Doe</h2>
    <p>UI Designer and <br> Frontend Developer</p>
    
    <div class="buttons">
        <button class="primary">Message</button>
        <button class="secondary">Following</button>
    </div>
    
    <div class="skills">
        <h4>Skills</h4>
        <ul>
        <li>UI / UX</li>
        <li>HTML</li>
        <li>CSS</li>
        <li>JavaScript</li>
        <li>jQuery</li>
        <li>React</li>
        <li>Node JS</li>
        </ul>
    </div>
</div>

CSS Code

CSS Code is given below.

<style>
:root
{
    --grey: #ECF0F3;
    --blue: #027BC7;
    --darkGrey: #E4E8EB;
}
*
{
    box-sizing: border-box;
    font-family: 'Fira Sans Extra Condensed', sans-serif;
}
body
{
    background-color: var(--grey);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.card
{
    background-color: var(--grey);
    border-radius: 5px;
    box-shadow: 3px 3px 5px #ccc, -3px -3px 5px #fff;
    color: var(--blue);
    padding-top: 30px;
    position: relative;
    width: 100%;
    max-width: 350px;
    text-align: center;
}
.card .level
{
    position: absolute;
    top: 30px;
    left: 30px;
    color: var(--grey);
    background-color: var(--blue);
    font-size: 14px;
    border-radius: 3px;
    padding: 3px 8px;
}
.card .picture
{
    box-shadow: 2px 2px 4px #ccc, -3px -3px 5px #fff;
    border-radius: 50%;
    padding: 4px;
    width: 120px;
}
.card h2
{
    margin: 10px 0px;
}
.card p
{
    font-size: 12px;
    line-height: 1.4;
}
.buttons
{
    margin: 30px 0px;
}
.buttons button
{
    background-color: var(--blue);
    border: 1px solid var(--blue);
    color: var(--grey);
    border-radius: 3px;
    padding: 10px 25px;
}
.buttons .secondary
{
    background-color: var(--grey);
    color: var(--blue);    
}
.skills
{
    text-align: left;
    padding: 20px;
    background-color: var(--darkGrey);
}
.skills h4
{
    margin: 5px 0px;
}
.skills ul
{
    list-style: none;
    margin: 0;
    padding: 0;
}
.skills ul li
{
    border: 1px solid var(--blue);
    border-radius: 2px;
    display: inline-block;
    font-size: 12px;
    padding: 8px;
    margin: 0px 5px 10px 0px;
}
.skills ul li:hover
{
    background-color: var(--blue);
    color: var(--grey);
}
</style>

Demo

Video Tutorial

Watch our video tutorial on Cool Profile Card Design with HTML CSS.

Social Media Menu with Popup Tooltip using HTML and CSS Horizontal Navigation Menu with HTML and CSS Responsive Sidebar Menu with CSS and JavaScript Cool CSS Button with Hover Animation Pure CSS Custom Radio Buttons Custom Emoji Radio Buttons with CSS Color Picker Design with HTML CSS and JavaScript Custom Radio Buttons with CSS Engraved HTML Buttons With CSS Neumorphic Buttons Design with CSS Cool Profile Card Design with HTML CSS Neumorphic Search Bar Design with HTML and CSS Simple Login Form with Placeholder Animation Pure CSS Button with Folded Corner Background Color Change Slider with HTML CSS and JavaScript 404 Page Not Found Template Design with HTML and CSS Movies Blog Card Design with HTML and CSS Simple CSS Border Animation with before and after Selector Custom Social Select Dropdown Menu with CSS and JavaScript Facebook Offline and Online Notification with CSS and JS New Year 2022 Text Animation with CSS and JS Change Placeholder Color using CSS Custom Select Tag DropDown with CSS and JavaScript Simple Price Range Slider With HTML CSS and JavaScript Profile Card With Hover Effect using HTML and CSS Circle With Two Colors using CSS Simple FAQ Accordion With HTML CSS and JavaScript