Design comparison
Solution retrospective
The the container border was really hard to do and I feel like there is too much white space below the profile picture icon and the "Greg Hooper" text. I also feel like the picture isn't big enough so I think I got the padding wrong.
What specific areas of your project would you like help with?Picture padding and the white space below the profile pic.
Community feedback
- @jakegodsallPosted 8 months ago
Hi 👋
Great work with this project!
A quick note about that space below the profile picture. This is caused by the fixed-value
height: 565px
on the.preview-card-container
element. This is generally ill-advised as it can lead to overflowing content if the content its too big to fit in the container.CSS will calculate the appropriate height for the component with its default value of
height: auto
and so you can control the appropriate space below the image by applying amargin-bottom
to the image itself..preview-card-container { height: auto; } .profile-icon { margin-bottom: 20px; }
Hope this helps! 😁
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord