
Solution retrospective
I’m really proud of this CSS code because I made it mobile responsive without using any @media queries.
h1 { font-size: clamp(2.2rem, 1.986rem + 0.571vw, 2.5rem); } .container { max-width: 1440px; margin: auto; padding: 2rem; display: grid; }
Using place-content: center, I was able to align and justify it both vertically and horizontally.
What challenges did you encounter, and how did you overcome them?.container { display: grid; place-content: center; }
The biggest challenge for me was not using @media, instead relying on relative units, and making sure everything was centered on the screen.
What specific areas of your project would you like help with?I’d like to know if this is actually the right way to do it to avoid using @media. Also, how can I improve my CSS writing skills?
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Lara Mesa's solution.
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