Design comparison
Solution retrospective
understanding grid a little
What challenges did you encounter, and how did you overcome them?grid is a little bit intense but l made a plan
Community feedback
- @StroudyPosted 2 months ago
Amazing job with this! You’re making fantastic progress. Here are some small tweaks that might take your solution to the next level…
- On your
<body>
you can use this code snippet to center the elements vertically,
min-height: 100svh; display: flex; justify-content: center;
- You have x3 padding on the calculator then the rest of the cards, The rest have
20px
, I know why you have done this but you can just change it to20px
then add amin-width: 230px;
to solve the issue, Consider using relative units likerem
aswell.
@media (min-width: 768px) { .calculator { padding: 60px; min-width: 230px; } }
-
Using a
<main>
tag inside the<body>
of your HTML is a best practice because it clearly identifies the main content of your page. This helps with accessibility and improves how search engines understand your content. -
I think you can benefit from using a naming convention like BEM (Block, Element, Modifier) is beneficial because it makes your CSS more organized, readable, and easier to maintain. BEM helps you clearly understand the purpose of each class, avoid naming conflicts, and create reusable components, leading to a more scalable codebase. For more details BEM,
-
Using
rem
orem
units in@media
queries is better thanpx
because they are relative units that adapt to user settings, like their preferred font size. This makes your design more responsive and accessible, ensuring it looks good on different devices and respects user preferences.
You’re doing fantastic! I hope these tips help you as you continue your coding journey. Stay curious and keep experimenting—every challenge is an opportunity to learn. Have fun, and keep coding with confidence! 🌟
0 - On your
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