Skip to content

hitmorecode/profile_card_component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Profile card component solution

This is a solution to the Profile card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • See hover states for interactive elements

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid

What I learned

At first I was doing way to much calculations to horizontally place the profile picture in the middle of the card. After doing some research I found out that this can simply be done with transform: translate();

Continued development

Using flexbox and position

Useful resources

  • CSS-Tricks - This is a good read on transform and it's properties. It's also explains different ways to use transform.
  • Colt Steele - Flexbox tutorial - This video helped me understand flexbox. If you are struggling with flexbox like I did, I recommend this video.
  • Kevin Powell - CSS Grid - Great video tutorial to learn css grid.

Author

About

Frontend Mentor Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published