Design comparison
Solution retrospective
This one took me around 7 hours. Struggled a bit with the media queries, but overall very fun! If you have any tips or suggestions, I would appreciate it.
Community feedback
- @wellington-damasioPosted over 1 year ago
Hi there, João! 🙃
This project is much more complex than it seems. I thought it would take me only 2 hours complete it but it took me 6 hours to do so haha.
I think you're using a
.flex-container
to wrap the two parts of the component on the mobile screen sizes and changing it's flex properties to centralize the two parts of the component in desktop views.This is causing your component to have unmatched borders in desktop views.
I recommend you to use that .flex-container class as a component wrapper that becomes a two-column layout on desktop views and using
position: absolute
to position that card wrapper on the center of the screen in desktop sizes.You can center elements by using the following CSS properties:
.card__wrapper { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
Overall, you did really good with this challenge! The design was matched, hover effects are on point and mobile view is great.
Congrats, dude. 🥳
Marked as helpful1@JoPantaPosted over 1 year ago@wellington-damasio thank you so much man. I'm gonna try that out!
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