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 trialDan Addison
10,019 PointsShould we just always use flex box and not worry about those people in the land that time forgot (outdated browsers)?
Hey folks, this flex box thing seems great so far, and unless I'm missing some big pitfalls further along the track it would seem that it's way easier and more powerful than grappling with tricky floats etc. So do you reckon it's just the obvious thing to utilise in all responsive web sites these days, regardless of that group of people who are still using old IE browsers that don't support flex box? Or, I'm thinking maybe if you were designing a site marketed at a particular demographic of people likely to use old browsers, then you would want to keep flex box out of it? Or, should you put a load of code in which works as a kind of fallback solution if the browser isn't flex box friendly? Though that might be creating way more work overall, for relatively rare scenarios? Any thoughts?
3 Answers
Miron Mitrea
Courses Plus Student 5,167 PointsIE still doesn't fully support flexbox, and there are a few people who still use it, so i don't think we are there yet. But it's easy to learn and maybe they will fix bugs in the near future. I still think it is a good investment to learn it.
Steven Parker
231,248 PointsDoing things two ways seems a bit silly if both methods yield similar visual results.
Since flexbox has very good support at this time, I would think the only reason to avoid it would be if you have certain knowledge that your target audience is using incompatible browsers.
Dan Addison
10,019 PointsThanks, yeah that was my guess, I wasn't sure whether flex box has now just been adopted by everyone or not because I remember overhearing a developer say he couldn't get away with using it in his job because of the incompatible browser issue (this was about a month ago when I still had no idea what flex box is!)
Daniel Kip
5,922 PointsI got stuck with that in my mind too. My conclusion was that flexbox makes our life so much easier. Few lines, consistent results... Just like any other change in this field, people will have to adapt eventually. That's my bet right now.