Layouts
I'm new to front-end, it's been a month so far.
When I look at this, I struggle to approach it. Do I use two boxes? Right now, I'm learning flex-box.
Conclusion: I'm struggling on how to do layouts.
7 Replies
Kevin make a video of this layout you can check it out
There’s several ways you could approach this. Personally I would use flexbox on the parent since there are only two elements. But grid is just as simple, a few more properties and code to write.
But yes, I would use one section for the blue background and another for the white, with both wrapped in a parent
Thanks, Is grid much easier and quick?
It took me 8 hours to built it 😭
I wouldn’t say it’s much easier or quicker, it will take a little more code to set up a grid vs flex on the two main sections.
But they are both quick and fairly easy, flex just takes one property
Ah okay.
Maybe two if you want it to wrap
Okay, thanks.