Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Flexbox Layout Building a Layout with Flexbox Creating a Sticky Footer with Flexbox

Flexbox for everything?

I really liked this course. It seems to me that flexbox should be used as much as possible when developing websites. It's advantages over the layout hacks of the past seem vast. I'm curious to know... what are some obvious cases where flexbox would not work? (...or, not work as well as floats etc)?

Also, curious to know if there are any front-end developers out there who use flexbox 100% of the time over other layout methods. It seems to me that it would be easier and perhaps more efficient to choose flexbox 100% of the time (if possible), that way you don't need to waste time weighing the benefits of floats vs flexbox for every layout. I guess it would be easier to adopt this workflow if you were designing AND developing, as you could keep flexbox in mind while designing.

Thanks Guil!

2 Answers

Owa Aquino
Owa Aquino
19,277 Points

Hi Joseph,

For me it's mattes to what I wanted to achieve on a project. Sometimes you'll be using both Flexbox and Float method on a project. Now Grid method is available for css layout this is another method we'll be using in the future for better layout of our websites.

Chees!

Owa

Timo J.
PLUS
Timo J.
Courses Plus Student 20,919 Points

Hello Joseph,

Float and Flex methods are very important and I advice to always keep them in mind. Otherwise when you are developing a professional websites, time count a lot and you will meet a lot of frameworks which do it for you automatically to save time like Bootstrap or Foundation. So for me it's impossible to use them 100% of our time you just need to know that they exist because they can be useful sometimes. ;)