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

Responsive site using HTML5 and CSS3

Kyle 155

@kyle4real

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

Solution retrospective


What would be a better way to size the width of the container child elements so that it is responsive? (instead of the min-width method I used)

Community feedback

@woodbrettm

Posted

Here could be an interesting way to go about it =>

.container {
  display: flex;
  flex-flow: row wrap;
}

.container > div {
  flex-basis: 370px;
  flex-grow: 1;
}

I tried using grid, but it's impossible to set the column span behavior on wrapped items and needed that 3rd item to span 2 columns when wrapped.

1

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