Single price grid component using HTML5 and CSS3
Design comparison
Community feedback
- @tedikoPosted almost 4 years ago
Hello, Rayane! 👋
Congratulations on finishing your first project here! I believe you are talking about
.left
and.right
div right? If so removewidth: 90%
from.left-content
then removewidth: 50%
from.left
and.right
and on both useflex: 1
property. This way your content aligns also vertically in these divs.If you want to see how I made this challenge, here is the link. Like most people here I also learn but maybe you will find something good for yourself.
Good luck with that, have fun coding! 💪
0 - @jenny07007Posted almost 4 years ago
Hi, I think you did a fantastic job! There're maybe lots of ways to solve the vertical-align problem, but in this case, you might just want to add couples lines of code to achieve your goal :)
You can also play around with these lines of code in your browser using the inspector first, a quick way to see how they actually change the layout. Happy coding.// in css body height: 100vh; display: flex; justify-content: center; align-items: center; // in .container class - remove `margin: 4% auto;`
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