Profile card component main - HTML & CSS Flexbox, Grid & No JS

Solution retrospective
Hey there! If u have any advice regarding image positioning or if u think I could've done something different let me know.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @vanzasetia
👋Hi Pop Andrei!
Thanks for leaving your kind words on my solution 😊.
Some feedback on this solution:
- I would not recommend to limit the
height
of thecard
. Let the content inside it control the height of it. - I notice that you often use
%
percentage units. I would recommend to userem
orem
instead to make the size consistent among devices. - I would highly recommend to use
details
andsummary
tag instead of input tags. - You don't need to specify the
height: 100%;
of thebody
andhtml
elements, it's unnecessary. - For the card images, what I did, I used
img
element for overflowing images and use CSSbackground-image
for the rest of it. To position it, in my opinion there's no the exact way to do it, since it all depends on your HTML markup and the way you position it. So, try hacking around until you think that the position similar to the design.
That's it! Hopefully this is helpful!
Marked as helpful - I would not recommend to limit the
- @thisisharshjain
Heyyy pccipru, Nice work man! Making this in vanilla HTML CSS is another challenge and you did great. I found a few small issues:
- If i click all accordions then top and bottom one's are cut (You can either increase height of container accordingly or maybe wrap all accordions inside a div and set overflow-y to auto)
- Below 1200px width the image on left doesn't stays in center
- On mobile screens, give .text-container a little padding. That will look little better Everything else looks good to me 😄 Keep grinding 💪🏻
Marked as helpful
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