Design comparison
SolutionDesign
Solution retrospective
Can i do the desktop layout , without the position, relative/absolute? Just using grid?
Community feedback
- @emestabilloPosted almost 3 years ago
Hi @Vidottizzz, good job in completing the project! The trick is to make a grid with 3 columns and 4 rows. You can then position the left and right cards at
grid-row: 2/3
.Other points:
- Heading tags:
h2
is missing betweenh1
andh3
. It's not recommended to skip the order - At the 985px breakpoint, the cards are touching the side gutters and creating an overflow
- Cleanup: As an example,
margin: 0 auto 1rem auto
can be simplified tomargin-bottom: 1rem
, andpadding: 0 0
can be deleted (unless both are media query styles and are overriding previous declarations. But in this case, they are not)
Hope this helps!
Marked as helpful0 - Heading tags:
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