- Create User Profile Page Design Using HTML Code
- User Profile Page Html Code:-
- User Profile Page Css Code:-
- Bootstrap 5 Profile page & profile cards
- Basic profile card
- eCommerce profile card
- User profile page template
- Project cards with attending users
- Program Title
- Company Culture
- Personal profile with edit icon
Create User Profile Page Design Using HTML Code
Hey Guys, Welcome To the Codewithrandom Blog, In today’s blog, we are going to see how to create a User Profile Page Design using HTML Code. A User Profile Page Design is a good practice for learning Html Css, especially for beginners. Here we add a user image with a name and short intro and followers and followings and lastly the follow button. These are going to be done with HTML and CSS Code. So, Let’s Begin Our User Profile Page Design Project By Adding The Source Codes. For That, First, We Are Using The Html Code.
User Profile Page Html Code:-
Gordon Ramsay
Master Chef
2.4M
Fans
202
Followings
552
Posts
Follow
Here We first create a four div class namely card , card_background_img , card_profile_img, user-details for making of card, image for the background, profile picture, and lastly the user details. Then Inside of div class, we were adding the contents that needs to be done with the profile card. Each content has a specific div class with a separate name in order to make some changes on specific elements using the CSS. And lastly, we are adding a button property for the following section. So we have added the HTML tags and Their contents, Now it’s time to make it attractive and user profile card by adding the CSS code.
User Profile Page Css Code:-
In the first step of CSS, We are setting the margin and padding values to zero with the box-sizing to border-box. and in the body section, we are fixing the alignment of text to center with a background color for the card. Now, We are adding color, font family, and size properties to the contents like heading, sub-heading, following, and followers of the user profile card. here the contents are in h3 and p. The code for the above explanation is given down.
* < margin: 0; padding: 0; box-sizing: border-box; >body < background-color: #e1e7ed; text-align: center; >h3 < font-size: 18px; font-weight: 500; color: #33363b; >p < font-size: 14px; color: #868d9b; >.card < width: 360px; height: auto; background-color: #ffffff; margin: 0 auto; margin-top: 80px; box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.15); >.card_profile_img < width: 120px; height: 120px; background-color: #868d9b; background: url("https://source.unsplash.com/7Sz71zuuW4k"); background-repeat: no-repeat; background-size: cover; background-position: center; border: 2px solid #ffffff; border-radius: 120px; margin: 0 auto; margin-top: -60px; >.card_background_img < width: 100%; height: 180px; background-color: #e1e7ed; background: url("https://source.unsplash.com/9wg5jCEPBsw"); background-repeat: no-repeat; background-size: cover; background-position: center; >.user_details p < margin-bottom: 20px; margin-top: -5px; >.user_details h3 < margin-top: 10px; >.card_count < padding: 30px; border-top: 1px solid #dde1e7; >.count < display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; >.count p < margin-top: -10px; >.btn
Now in the further upcoming steps, the code is for making the card and fixing the contents properly in it. The contents were called by specific div class name and inserting the common properties like , width, height , display , margin , padding , font-size , font-color, weight etc. in it to make it attractive and fitted to the card sizes. Additionally the background properties like BG repeat , BG size and BG position for make a good-looking attractive background image and also some box shadow properties were added. For alignment of contents we just using flex box items , top and bottom and then margin and padding with top , right properties of it.
.card < width: 360px; height: auto; background-color: #ffffff; margin: 0 auto; margin-top: 80px; box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.15); >.card_profile_img < width: 120px; height: 120px; background-color: #868d9b; background: url("https://source.unsplash.com/7Sz71zuuW4k"); background-repeat: no-repeat; background-size: cover; background-position: center; border: 2px solid #ffffff; border-radius: 120px; margin: 0 auto; margin-top: -60px; >.card_background_img < width: 100%; height: 180px; background-color: #e1e7ed; background: url("https://source.unsplash.com/9wg5jCEPBsw"); background-repeat: no-repeat; background-size: cover; background-position: center; >.user_details p < margin-bottom: 20px; margin-top: -5px; >.user_details h3 < margin-top: 10px; >.card_count < padding: 30px; border-top: 1px solid #dde1e7; >.count < display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; >.count p
Now the last step we do is adding a button to complete the user profile card, For that we calling out the button class and adding width and height for button size , background color , border with border radius , font-size , weight , padding , text align and cursor. After implementing this properties the button would be looks attractive and responsive. The code for the above ones is here.
Now We have completed adding the CSS code and Hence We came to the end of this project but make sure that you view the project output in the below Output Section. Now We have Successfully created our User Profile Page Design Using HTML and CSS Code. You can use this project for your personnel needs and the respective lines of code are given with the code pen link mentioned below. If you find out this Blog helpful, then make sure to search Codewithrandom on Google for Front End Projects with Source codes and make sure to Follow the Code with Random Instagram page. WRITTEN BY — Ragunathan S
Bootstrap 5 Profile page & profile cards
Responsive profile pages and cards built with Bootstrap 5. User profile card, profile picture, followers, avatars, comments, social stats, edit profile form.
Basic profile card
A simple profile card template with chat option, square avatar and stat counters.
Danny McLoan
Senior Journalist
Articles
Followers Rating
eCommerce profile card
A eCommerce profile card with a star rating number of comments / testimonial reviews and a «Book now» call to action button. The CTA in this case could be integrated with a calendar schedule.
Exquisite hand henna tattoo
3 hrs
$90
@sheisme
52 comments
User profile page template
A full user profile layout, with a circle profile picture in the header, projects section with social icons, a detailed address section and experience cards using progress bars to indicate skill level.
John Smith
Bay Area, San Francisco, CA
- https://mdbootstrap.com
- mdbootstrap
- @mdbootstrap
- mdbootstrap
- mdbootstrap
Bay Area, San Francisco, CA
HomeUserUser Profile
Full Stack Developer
Bay Area, San Francisco, CA
Johnatan Smith
example@example.com
(097) 234-5678
(098) 765-4321
Bay Area, San Francisco, CAassigment Project StatusWeb Design
Website Markup
One Page
Mobile Template
Backend API
assigment Project StatusWeb Design
Website Markup
One Page
Mobile Template
Backend API