Design comparison
Community feedback
- @correlucasPosted over 2 years ago
๐พHello Gvantsa, congratulations for your solution!
I've looked your live site and I did some corrections, note that the container isn't aligned center due some lack of properties inside the body tag, you need to add
display: flex;
andmin-height: 100vh;
in order to allow the alignment and display 100% of the viewport height, see the code fixes below:body { display: flex; min-height: 100vh; justify-content: center; align-items: center; flex-direction: column; }
Note that I've used
flex-direction: column;
just to align the attribution and component vertically.The mobile version needs that you apply a media query to change the container flow vertically with
flex-direction: column
I'll show the code for the media query below, check it out:@media (max-width: 750px) { .container { display: flex; width: 50%; /* margin: 25vh auto 2vh; */ flex-direction: column; }
Hope this helps you Gvantsaa, keep it up and happy coding!
Marked as helpful0
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