Mobile responsive site using Flex & Grids! - Social Proof Section
Design comparison
Solution retrospective
My second challenge. With this challenge I think I understood really well how to use Flex & Grid models. Really usefull to design mobile responsive apps.
Nevertheless, I have some questions:
-
Initially, I’ve put the following properties to the .container and .container__ratings classes -> display: flex; flex-direction: column; align-items :center; justify-content: center; The effect of this was that the star ratings rectangles were limited to the width of the text (rated 5 stars…), and not to the width of the container (88% of 100%). That was not the intended effect, so I removed those properties, and I got the correct width. I don’t understand why adding flex properties to the above classes got me the wrong width. Any idea?
-
I got suggested in a previous challenge that my body code should start with a min-height: 100vh; I understand the theory, if I’m not using this line of code, a person viewing my page in a different device could not see the entire page. But, when I remove this line of code, and I try in different height sizes, all my page is shown correctly. Why is that?
Thanks in advance.
P.S: ignore the commens. Those are my findings during the challenge, and are in Spanish :P
Community feedback
- @AgataLiberskaPosted over 3 years ago
Hi @sportiz91, when I check how the page would show on iPad Pro, and change
min-height
toheight: 100vh
, or removemin-height
completely, the body doesn't stretch all the way down, so it definitely does something :). I tried to quickly google this but didn't find a good explanation, hope to find something later or that someone really smart replies to this comment so we can both learn! :D0
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