Design comparison
Solution retrospective
Please check out my solution, there are some areas that I would like to improve, if you have any feedback, please let me know. Best Regards
Community feedback
- @GenildocsPosted 3 months ago
Here’s the translation:
Hello, congratulations on completing the challenge.
As a tip, I believe it would be more effective to apply theflex
property directly to thebody
instead of creating thediv
with the classmain-container
.
Example:body { background-color: var(--light-grayish-cyan); font-family: "Space Mono", monospace; font-weight: 700; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
Apply the
flex
property tocalculate
and create twodiv
elements, one for the calculation and another to display the value.<main class="container"> <div class="section-1"></div> <div class="section-2"></div> </main>
In the
input
div, it would be helpful to separatebill
,select tip
, andnumber of people
each into their owndiv
. This makes it easier to apply styles, and you wouldn't need to useinputForm
.To properly align
select tip
, use thegrid
property and divide it into 3 columns.
Example:.section-1 .percentage-number { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 10rem)); grid-gap: 2rem; }
Marked as helpful0@sean365-bitPosted about 2 months agoHello @Genildocs Thank you so much for commenting and providing feedback, I will take it into consideration. Best Regards
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