Design comparison
Solution retrospective
I only used basic HTML and CSS in order to realize this project but I will use diverse libraries or methodologies for future projects.
What challenges did you encounter, and how did you overcome them?I used media queries for the mobile format of the challenge.
What specific areas of your project would you like help with?I would like to have a better understanding on how I can improve my code and how I can create responsive projects or apps.
Community feedback
- @ShoaibShujaPosted 5 months ago
Amazing job my friend, the code looks good and clean but the
.container
doesn't seem to be perfectly centered like what the design asked for. You can achieve it by removing themargin-top
property from.container
and copying these lines of code to your CSS file:body { width: 100%; min-height: 100vh; display: flex; justify-content: center; align-items: center; }
And also, don't forget to use
font-family
to make text look better or according to design.Have a nice day. 👍
0 - @idatenkiddyPosted 5 months ago
You can use the position absolute method to center the component, position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); and also review the margins and padding of image and texts inside the component. you can increase the border radius to match the original design.
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