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
Suli S
1,475 PointsCan I use Flexbox Layout?
Hi
It seems that Flexbox is not supported in all web browsers. So, what should I use instead for page layouts?
6 Answers
Matt Campbell
9,767 PointsStick with the current accepted practice. Use floats and stuff.
Kevin Korte
28,149 PointsProbably not quite yet. Any idea what is the most used browsers by your vistors? http://caniuse.com/#search=flex
Suli S
1,475 Pointsthen why Treeehouse didn't teach us another options that is common and accepted in browsers?
Kevin Korte
28,149 PointsThe entire Smells Like Bakin' teaches you how to use grids, both in fixed width and fluid, responsive, and adaptive. They way that project IS the current accepted method for website structure. If you haven't been through the entire project, start to finish, I suggest you do. It will teach you the currently common option.
You'll also learn there is no such thing as accepted in all browsers... :)
Kevin Silvestre
13,561 PointsYeah I don't why Treehouse dedicated a whole section to flexbox when it is not even used for page layout. Is like teaching a Language no one speaks.
James Barnett
39,199 Points@Kevin - Web designers have a history of being trend setters and talking about what might be the next big thing. If you check out the blog CSS Tricks there's plenty of stuff there that's proof-of-concept and has weak cross browser support the web design community likes to think of itself as forward looking.
Kevin Silvestre
13,561 PointsOh ok. So basically it is assumed that because of the power that flex box gives us when laying out a web page it will in a near future be supported by all major browser and maybe even become a standard in web design?
Kevin Korte
28,149 PointsCorrect. It strongly appears it will gain full support across all modern browsers, and we will transition to using flexbox for most layouts. In the meantime, you certainly want to prime the pumps by learning how to use flexbox now, so when it does have better support you can start using it instead of just starting to learn how to use it.
You'll start to see that a lot with web development. As soon as something even becomes a candidate and starts working on some browsers prefixed, a lot of people start playing with and learning how to use it before it becomes production ready.