Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Four Card Section using HTML+CSS (Flexbox)

@azmifitra

Desktop design screenshot for the Four card feature section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

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-wankhade

Posted

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 helpful

0

@azmifitra

Posted

@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
Hafizan Adli 1,190

@hafizanadli

Posted

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 helpful

0

@azmifitra

Posted

@hafizanadli Hai hafiz! Thanks for your suggestion, i will fix it later :).

0
Ahmed Faisal 5,095

@afrussel

Posted

Usring flexbox with positions you can solve this problem. No need to use transform.

Marked as helpful

0

@azmifitra

Posted

@afrussel Thanks for your advice :). Happy codding!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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