Design comparison
Solution retrospective
How do people become so good with html and css so fast aaa
Community feedback
- @FahatmahPosted over 2 years ago
Hey there. It is by progress and focusing to improve and having persistence to learn more makes you do it easier eventually. By the way, I see that your output is not in the center, you can use either grid layout or flexbox and the background-color of the second column should be darker. And nice work done there!
2 - @tomatas95Posted over 2 years ago
I tried to use grid I believe to make it center, but I think it didn't work so I used margin auto as I think they center out items as well(?) uhm if you're not busy maybe you could show me how? Thank you!
0@FahatmahPosted over 2 years ago@tomatas95 maybe the body is not 100vh of its height. What I always do is make the body's height to 100vh like this:
body {display: grid; place-items: center; min-height: 100vh;}
Just like that and it will center the elements inside of the body. But there is other several ways to center it.
1
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