Design comparison
Solution retrospective
I have problem with arranging the cards. I design it using flexbox and it is hard to place the card properly, so i need to use transform(translate) to arrange them. If there any tips for me to solve this problem, please let me know :).
Community feedback
- @Vishal-wankhadePosted over 3 years ago
wrap the 4 boxes in a section use flex in it and give flex-direction column, make three columns inside that section, the 1st box in 1st column, the two center boxes in 2nd column,3rd box in the 3rd column in this way you can give it proper structure without using the transform property. see my solution to this challenge for any help https://www.frontendmentor.io/solutions/fourcardfeaturesectionmaster-solution-using-html-and-css-o2VKoPxKH hope this will help
Marked as helpful0@azmifitraPosted over 3 years ago@Vishal-wankhade Hallo Vishal! I see your point here and your solution is really helpful. I will fix my code soon and try to implement it. Thankyou for the advice! :)
0 - @hafizanadliPosted over 3 years ago
I think you use too many useless div wrapper. For example, supervisor class don't need to be wrapped with box and box1 div. You can simply use flexbox in boxes container to arrange the cards.
Marked as helpful0@azmifitraPosted over 3 years ago@hafizanadli Hai hafiz! Thanks for your suggestion, i will fix it later :).
0 - @afrusselPosted over 3 years ago
Usring flexbox with positions you can solve this problem. No need to use transform.
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