Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 4 years ago

Services cards layout using CSS Grid

bem
ChrisEski•110
@ChrisEski
A solution to the Four card feature section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


When switching to desktop layout, and after setting css grid, the red and orange cards that are together in the central column, had a smaller height than the other two on the sides.

Min or max height on these cards had no effect, they kept staying shorter. What worked was setting the grid row height to the given height, as well as setting the cards' height explicitly, which is what i sticked with.

Is that a correct/good approach? Was there another way of making the cards' height go up to 250px without explicitly setting to this number?

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on ChrisEski's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License