Html code my profile

How to create Profile Data Card with HTML and CSS

In this article, you will learn how to create Profile data Card using only HTML & CSS. Earlier in this blog, I have shared a couple of simple Card Design, but here in this blog, I am going to create Profile Data Card only with HTML and CSS. Apart from this, I have shared many Card design in my blog. Please make sure to check those as well.

Читайте также:  Php adding function to class

Website card is a powerful manner to give your enterprise details, multi function location, optimized for cell devices. As you are probable conscious, internet access from cell devices surpassed computing device about few years ago, so it’s miles more essential than ever for corporations to have a cell-pleasant presence. Internet cards provide a convenient way to archive this.

If you like this Profile Data Card design , then feel free to use it in your project. Copy the code by clicking on Copy button provided below.

Source Code:

First, you have to create two files. One of them is HTML, and the other one is CSS. After creating the files, paste the code provided below.

HTML CODE:

Second, create a CSS file with the name of style.css and paste the given codes in your CSS file. Remember, you have to create a file with .css extension.

CSS CODE:

I hope you liked this snippet. If so, please share the blog and follow us in our social media profiles and stay connected with this blog. Thank you for visiting.

Источник

How to make a profile card with HTML & CSS

When showing others what you do you don’t always need to show your portfolio website containing 50+ things about you and what you’ve done. Instead, you should sometimes find a way to quickly show the main things about you, and that’s where profile cards come in! Profile cards are easy to make with good knowledge of HTML and CSS, you just have to have an idea of what your profile card would look like. In this blog, I’ll show how I made my profile card, but if you have any suggestions to put on it comment down below.

Читайте также:  Простые алгоритмы сортировки питон

Making the card

First, I made a card div with a white background and a width of 360px with a height of 455px . I gave it a border-radius of 10px and a box shadow to make it look good. Then I gave the card a padding of 10px for every side except for the bottom to make it seem full. Finally, I gave it a display of flex and made it a flex column with everything having a gap of 15px .

HTML

CSS

.card  width: 360px; height: 455px; border-radius: 10px; background-color: white; padding: 10px 10px 0 10px; box-shadow: 10px 15px; display: flex; flex-direction: column; gap: 15px; > 

Introduction

What I like to call the introduction, is the top part of a profile card where you show your name and occupancy/what you do (people also add pfp’s in web designs). First, we made a div that contains our profile image, h2 element (name), and h3 element (occupancy). The div has a text-align of center and a font-family of Poiret One . For the profile image, we give it a small width of 60px and a border radius of 50%.

HTML

  class="pfp">  src="https://res.cloudinary.com/practicaldev/image/fetch/s--TaFBhrk---/c_fill,f_auto,fl_progressive,h_320,q_auto,w_320/https://dev-to-uploads.s3.amazonaws.com/uploads/user/profile_image/933459/4c8158c5-9aaf-4354-98c1-3c67f6fc49ba.jpg" alt="catPhoto"> Lens Dorsainvil Web Developer  
.pfp  text-align: center; font-family: Poiret One; > .pfp > img  border-radius: 50%; width: 60px; border: solid; > 

description

All I did for the description text was make a paragraph element with a font-family of Red Hat Display and a text-align of center .

HTML

 class="intro">A 13 year old boy learning web-development and UX/UI design for fun and for a future job. Wanting to explore computer science and game development. Hoping to be a software engineer one day! 

CSS

.intro  text-align: center; font-family: Red Hat Display; font-weight: 300; > 

Programming skills

I also added all the programming languages that I use. I got the icons from Devicon so go check it out! I contained all the icons in a div and gave it a display of flex to space them evenly. Of course, I also had to give them a small width.

HTML

  class="programmingLanguages">  class="language" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/html5/html5-original.svg" />  class="language" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/css3/css3-original.svg" />  class="language" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/javascript/javascript-original.svg" />  class="language" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/react/react-original.svg" />  class="language" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/csharp/csharp-original.svg" />  

CSS

 .programmingLanguages  display: flex; justify-content: space-around; > .language  width: 40px; > 

Email and Socials

  class="email"> lensdorsainvi711@outlook.com 
 .email  background-color: black; color: white; display: flex; justify-content: center; font-family: Poppins; border-radius: 5px; transition: 0.3s; > /*BONUS: hover effect*/ .email:hover  background-color: #00D9C0; > 

However, for my social media icons I got from Ionicons (except for the DEV icon) I contained them all in a div and set it to flex so I can put them at the bottom right with justify-content: flex-end .

  class="socials">  src="https://d2fltix0v2e0sb.cloudfront.net/dev-black.png" alt="dev">  name="logo-codepen">  name="logo-twitter">  name="logo-github">  
.socials  display: flex; justify-content: flex-end; /*Also a gap to space them out*/ gap: 8px; > .socials > img  width: 25px; > ion-icon  font-size: 25px; > 

There’s lots of other profile card designs you can see such as on web design web apps like Dribbble. You can also make a profile card just for practice with HTML and CSS, in fact, I think this is great for beginners! If you have any question or things to say just comment them, you can also comment a profile card that you made if you want. If you want to use my design fork it on Codepen or the GitHub repo and customize it your way! Have a good day/night 👋.

Источник

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

Источник

22 CSS Profile Cards

Collection of free HTML and CSS profile card code examples from Codepen, GitHub and other resources. Update of November 2021 collection. 4 new items.

Author

Made with

About a code

PopDog Card

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Author

Made with

About a code

Profile Cards — CSS Grid

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Demo image: Profile Card

Author

Made with

About a code

Profile Card

This is some kind of profile card. The Hire me button has a moving gradient hover animation.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Author

Made with

About a code

InfoCard CSS Only

A simple self expanding info card using very basic tools and transitions.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Author

Made with

About a code

Social Card Hover

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Demo image: CSS Card

Author

Made with

About a code

CSS Card

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Demo image: Fairly Colourful Profile Card

Author

Made with

About a code

Fairly Colourful Profile Card

A simple and a little bit colorful design concept of a profile card.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Demo image: Game-Based Cards

Author

Made with

About a code

Game-Based Cards

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Demo image: Profile Card Design

Author

Made with

About a code

Profile Card Design

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Author

Made with

About the code

Profile Card Hover Over It Once

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Author

Made with

About the code

Player/User Cards

Player/user cards with hover effect in HTML and CSS.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Author

Made with

About the code

Profile Card UI Design

Profile card UI design with cool hover effect.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Dependencies: bootstrap.css, font-awesome.css

Author

Made with

About the code

Cv Card Profile

A digital card profile in wich resume all your essential professional panorama and easily share.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Author

Made with

About the code

Profile Card

Profile card with animation in HTML, CSS and JS.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Author

Made with

About the code

UI Profile Cards

UI profile cards with CSS transition effects on hover.

Compatible browsers: Chrome, Edge, Firefox, Opera, Safari

Demo image: CSS Profile Card

Author

Источник

Оцените статью