DEV Community

Cover image for The Long and Short of CSS Flexbox Container Properties

The Long and Short of CSS Flexbox Container Properties

/*Sharkie*/ on December 04, 2019

Layout is hard. And trying to use floats is a massive pain in the ass. But what if we had a tried and true method for writing responsive layouts? ...
Collapse
 
austinspaeth profile image
Austin Spaeth

I just wanted to say I think you did a great job explaining flex, I would totally use this to introduce my junior developers to flexbox. Thanks for putting this together :)

To follow up, it would be cool to explore some more complicated flex techniques, such as having a flex-wrap on a parent container, but having the inner elements centered but justified flex-start. That's something I don't really see in most other flex overviews.

Collapse
 
justsharkie profile image
/*Sharkie*/

Aww thank you!

I was actually digging into the more complex techniques a bit, and considered trying to include them, but decided to stick with the basics because those are a bit over my head right now. 😂

Collapse
 
builderx profile image
Raymond Gonzalez

Does that mean, this will become a series ?? I use this for react native, so that could be interesting. Good post by the way, great information.

Thread Thread
 
justsharkie profile image
/*Sharkie*/

There is a very good chance of that, but I won't say for definite because I'm always horrible at keeping up with commitments. :P

Collapse
 
chadtiffin profile image
Chad Tiffin

Do we need another article on flexbox? There are already a ton of good articles and cheatsheets on flexbox... nothing new here

Collapse
 
justsharkie profile image
/*Sharkie*/

My reasoning behind this article was to really drill the properties into my head, and have a place I could come back to when I needed a refresh or to relook at something. Writing it all out myself makes it inherently understandable to me, and a much better resource for future me.

So nope, nothing new here. Just thought I'd post it in case any other Flexbox newbies found it useful. 🙂

Collapse
 
barzi profile image
Andy

Please be kind to who's actually producing content, you aren't. I don't get why you are getting so salty.

Collapse
 
dylanesque profile image
Michael Caveney

There's nothing new to you, but something presented "just so" could make a concept click for somebody. If you didn't get anything out of a particular article, that doesn't mean that nobody else did, and disparaging comments like that aren't at all helpful.

Collapse
 
sarahscode profile image
Sarah Katz

I, for one, still struggle a bit with flexbox and find that the more articles I read, the more it makes sense, so ... yes. We do need another article on flexbox.

Collapse
 
billsimmonszy profile image
Korhall

Thanks! I will use it!