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

3-column preview card component

P
solvman 1,670

@solvman

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@tburette

Posted

Nice solution. You used place-content which I didn't know about. It is a shorthand property for align-content and justify-content.

There is a smooth transition when the breakpoint is it : the vertical space between the items within each of the three cards smoothly increase/decrease. I looked at the code and it is caused by :

.button {
  transition: all 0.4s;
}

At first I didn't understand why transition: on a button affect the space between the items of a grid. By fiddling around I realized it is the margin-top property of the button which transitions.

There is a bunch of CSS that is unused in the final solution : in .button {} there are two border:. .orange{}, .green{}, .cyan{} are unused,..

Marked as helpful

0

P
solvman 1,670

@solvman

Posted

Hi @tburette 👋

Thank you for the time you took to review my solution! You must not have noticed that utility classes .orange {}, .green{}, and .cyan{} are used for adding the appropriate color to every button's text.

Good catch on border: none and border: 1px ... 👍 I was doing a button reset at first and then forgot to remove it when styling 😅

Thank you!

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