Profile Card Challenge Using HTML and SCSS

Solution retrospective
If you have any feedback I'd be glad to hear it.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @pikapikamart
Hey, great work on this one.
Layout looks good in desktop and in mobile state as well.
Though when opening up dev tools, your layout gets squished in the middle, and I suspected,
height: 100vh
is declared in yourbg
selector.Instead of that, use
min-height: 100vh
which will be a lot better. But still, your layout won't work because youabsolute
thecard
selector which I think not the right choice in here. You want it to be captured by the parent, so making itstatic
orrelative
is the betters ones.So in your
card
selector. Remove this propertiesposition: absolute; transform left and top
And in your
bg
selector. You want to add something likealign-items: center; display: flex; justify-content: center; padding: add a padding to the top and bottom;
This will make your content properly aligned in the center while making element in the flow which is a lot better.
If you need help regarding those suggestion, just drop it here okay and i'll help you with it^
Join 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