Design comparison
Solution retrospective
This is my first project at Frontend Mentor. I would be glad to receive feedback! In this small project, I have been adding icons using CSS pseudo-elements, is this a good practice?
Community feedback
- @correlucasPosted about 2 years ago
👾Hello Maksim, Congratulations on completing this challenge!
Make the vertical alignment using
flex
properties andmin-height
. First of all putmin-height: 100vh
to thebody
to make the body display 100% of the viewport height (this makes the container align to the height size thats now 100% of the screen height) size anddisplay: flex
eflex-direction: column
to align the child element (the container) vertically using the body as reference.body { min-height: 100vh; margin: 0; padding: 0; background-color: var(--Main-BG); font-family: 'Outfit'; font-weight: 400; color: var(--Soft-blue); display: flex; align-items: center; justify-content: center; }
To improve your component overall responsiveness, something you can do its to create a media query to save space in the
pricing section
to make each information in a different row. Here’s the code for this media query.@media (max-width: 350px) { .card-body-info { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.6em; border-bottom: 2px solid var(--Line); flex-direction: column; } }
✌️ I hope this helps you and happy coding!
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