Design comparison
Solution retrospective
Using sass for the first time was intriguingly, exhaustingly, mentally draining, funnily fun.
Reading and doing are not the same. I am extremely proud of my perseverance in using technologies I had no idea how to use.
What challenges did you encounter, and how did you overcome them?grid rows were not aligning, until i used the auto value for it.
sass was not sass-ing. The sass styles were not reflecting. I discovered that I linked the wrong css file in my html.
What specific areas of your project would you like help with?I would love explanations on how to better use grid display.
Community feedback
- @carlosmarte23Posted 29 days ago
Hello there! Congratulations on completing your project!
I've noticed a small issue on the desktop version where scroll bars are appearing. This seems to be due to the container having a top margin set at 7%. To resolve this, consider the following adjustments:
remove the top and bottom margin and set it to
margin: 0 auto;
And to center the container in the middle of the body add this to your body style:
display: flex; flex-direction: column; justify-content: center;
As for your feed back for CSS grid here is how i did it and I found it simpler to understand and implement:
try to use grid areas instead of manually putting every card on its column/row for example:
on your grid do this:
grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); grid-template-areas: "daniel daniel jonathan" "jeanette patrick patrick" "kira kira kira";
What this does is first, stablish the amount of columns (3) and rows (2) in this case for the desktop layout. Then the template areas how i see it is like a visual representation of how each element on your grid is going to be placed.
Then in the style of each "card" assign the grid area that it corresponds into your grid template like this:
.daniel { // ... your styles other styles grid-area: daniel; }
That will make your "daniel card" two columns wide and be placed on the top left.
I hope that makes sense :D
good work and keep coding!
Marked as helpful0@Ejiro-FrancesPosted 27 days agoThank you @carlosmarte23 for reviewing my project. I would definitely use the grid-area method. I thought using grid display meant avoiding flex display. I understand now that was a false notion. Thanks a lot. This is really helpful.
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