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.
No description
7 Replies
DoContra
DoContra11mo ago
Kevin make a video of this layout you can check it out
clevermissfox
clevermissfox11mo ago
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
Jonah
JonahOP11mo ago
Thanks, Is grid much easier and quick? It took me 8 hours to built it 😭
clevermissfox
clevermissfox11mo ago
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
Jonah
JonahOP11mo ago
Ah okay.
clevermissfox
clevermissfox11mo ago
Maybe two if you want it to wrap
Jonah
JonahOP11mo ago
Okay, thanks.
Want results from more Discord servers?
Add your server