Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 10 months ago

Four card feature section Flex/Grid mix

sass/scss
P
Matthef•190
@MatFrat95
A solution to the Four card feature section challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

It was my first time with grid, i learn basic from free resources, it's much complicated compared to flex, but I'm sure, Ill can learn it easily. It's also my first time with variblaes, it's very handy and I will use it on dailt basis from now.

What challenges did you encounter, and how did you overcome them?

The hardest thing for me was the struggle to arrange the objects on the cards correctly, as shown in the screenshots.

What specific areas of your project would you like help with?

I had problem with responsiveness of site. After some trial and error fun with code I finally created page similar to screenshots BUT I have one question. During coding I had conception to make cards first next to each other i columns, like on mobile screen, then move them in two columns of two cards, one under the other, and then add proper look from deskop screen. With grid I wasn't able to reach that effect. because grid lines makes it impossible. How can i place object in grid in the middle of line? I was thinking about creating separate code in HTML for @media to use flex and another one for grid, and hide previous with display:none;. How can I do it without repeating code?

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 Matthef'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