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.
Users should be able to:
- View the optimal layout depending on their device's screen size
- See hover states for interactive elements
- Solution URL: HTML Solution
- Solution URL: CSS Solution
- Live Site URL: Live site
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
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();
Using flexbox and position
- 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.
- Frontend Mentor - @hitmorecode