Design comparison
Solution retrospective
In this challenge, I mainly used grid
for responsiveness. I made three layouts: desktop, tablet, mobile. And I started with mobile layout first. In the last part, I am not happy with my code that I have to use top: 25%
to centre a div
. How can I use other ways like align-item: center
to center that. Feedbacks are warmly welcomed.
Happy Coding!
Community feedback
- @BikeInManPosted over 2 years ago
Hi,
Nice work with 2X2 on tablets. Regarding your question. You can remove
top: 25%;
on supervisor and calculatorand just add the
align-items: center;
to.feature-section
Let me know if it works out.
You can make this challenge more interesting by adding some interactivity to the cards like a hover effect and also making each card a link. They are supposed to lead somewhere, right? Good Luck.
Marked as helpful1@hteinLinn210Posted over 2 years ago@BikeInMan Thank you. I think I was just adding
align-items: center;
to.features
and I thought it didn’t work.I am still a beginner and don't have a strong foundation at CSS. So, I am not good at animation. But I will give it a try.
0 - @K4UNGPosted over 2 years ago
Hey! Good job on this challenge. Another great way you could use to get this centered layout would be to have 4 grid rows and giving the cards 2 rows each at exactly where you want them to be using
grid-area-templates
or justgrid-row/column
. Happy Coding!1@hteinLinn210Posted over 2 years ago@K4UNG Thanks. I am not using grid as usual. I will give it a go.
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