Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Gina BéginCourses Plus Student 8,613 Points
Why use Flexbox if you have to go back and code for browsers its not compatible with?
Seems like it would just be more efficient to use coding that are universally accepted...?
Juan Luna11,483 Points
If you're doing the Web Design track, don't worry too much about that; I was wondering the same a month ago but now I know that there are tools and frameworks that do all the ugly stuff for us, I mean, learn css as much as you can because that is the base for all tools like Sass, Less and all the others... (and you need to know what are they doing to the CSS file). For example, there is a Framework called Compass (the last course in Web Design track) that helps you implement every CSS3 properties in every web browser (if a property is not supported, it takes care about that).
Finally, I think that CSS3 properties are going to be accepted in every browser so look at the bright side: you`re learning things that are not completely implemented yet, so you are a step forward.
There is a paradigm in the web dev world known as 'graceful degradation' where the idea is that you create a site using the latest and greatest features but make sure the site can still be viewed properly in older browsers and those that don't support those features. So the answer to your question is that you use new techniques such as flexbox because it provides a level of control over the site layout that is both elegant and simple, but you provide a fallback to ensure that the website is not a complete wreck on older browsers. As Juan mentioned above, you can use frameworks like compass, bootstrap and foundation to take the tedium out of this work. The reason Treehouse tracks have you learn CSS manually before getting to these frameworks is because you need to understand what is going on under the hood in case you need to do some debugging.