Design comparison
Solution retrospective
As this project has specific layout requirements for various devices, I have started learning about rem
units and the max-width
CSS property to enhance page responsiveness. Additionally, I’ve explored media queries to adjust the profile card’s design for different screen sizes. I think I did a good job on those.
Community feedback
- @py-code314Posted 3 months ago
Hello,
Great job. Looks almost identical to the original design file. But I noticed a few issues regarding responsiveness.
- Content is overflowing when zoomed in. Change
height
tomin-height
in.main-content
to prevent that - When I make the screen narrow, around 1030px mark card is increasing in width. You might wanna check why that's happening
- You will benefit from adding some kind of CSS Reset on top of the code. Just google it for any modern css reset
- Do some research about
clamp()
function. You can use it effectively to avoid writing multiple media queries - You can use
<blockquote>
element for.profile-bio
if you want. I think it's more semantic
I hope these will help you to get better. Cheers!
Marked as helpful1@AlvaroPratesPosted 3 months agoHey, thanks for the great feedback!
I adjusted the height, the responsiveness really got better.
About the card increasing in width when the screen is close to 1030px, it is because of the media-query. I implemented the media-query because in the figma file there is a requirement for tablets where the card has a larger width (in the README file there is some screenshots).
About the
<blockquote>
tag, I agree with you. I've changed that.Finally, thank you for recommending clamp(), I will get better acquainted with this function and try to use it instead of media-queries
0@py-code314Posted 3 months agoOh sorry, I don't have PRO subscription. So you know better
Happy coding 🎉
0 - Content is overflowing when zoomed in. Change
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