Mobile First Responsive Testimonials-Grid-Section | Build wit Css-Grid
Design comparison
Solution retrospective
Hi 👋 kindly check this out and give me your feedback. 👍👍
Community feedback
- @vanzasetiaPosted over 2 years ago
Hello, Ernest! 👋
Great work on this challenge! Your solution looks pretty good! 😀 Also, good job with the alternative text for all images! 👏
I would not recommend setting any
font-size
on thehtml
element. It causes conflict with the user font size settings and causes issues when working with CSS framework. It's because all elements depend on thehtml
font size, especially if you userem
as your main font size unit. So, simply set thefont-size
on thebody
element instead.Prefer unitless numbers for line-height values to avoid unexpected results. The MDN documentation explains it well.👍
That's it! Hope this helps. 😊
Marked as helpful0@gbabohernestPosted over 2 years ago@vanzasetia thanks for the feedback Always helpful. 😊✌
0@vanzasetiaPosted over 2 years ago@gbabohernest You're welcome! Glad it's helpful for you! 😄
0 - @ZorahScopePosted over 2 years ago
This looks sweet. Can't be too in-depth on my feedback since I haven't learned CSS grid yet.
But I'd say the only thing that stands out to me would be that the body or html element doesn't fill out the full viewport. Which explains the noticeable difference in the overall height when using the slider to compare the design vs your solution.
body { min-height: 100vh; min-width: 100vw; /* other declarations stay the same */ } main { margin: 10rem auto; /* other declarations stay the same */
Something like this, but would center using flexbox or grid vs explicitly defining margin.
Also went from H1 then skipped to H4, there's no H2 or H3. I'm guessing you opted for H4 for the smaller font size, but this can be don't by adjusting the font-size directly. Heading elements should follow as intended from "Most important > least important"
0@vanzasetiaPosted over 2 years ago@elixy By default, the
body
element has already 100% width so, there's no need to set anymin-width
or evenmax-width
. 🙂It's best to treat
body
element like the canvas paper, you can't limit or add more width to it. However, you can limit the element inside it whatever you like. 😉0@gbabohernestPosted over 2 years ago@elixy thanks for the feedback. As for the heading... yeah, that's what I did.. but I will look at it.. thanks again 😊 👍
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