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.

CSS

Igor Yamshchykov
Igor Yamshchykov
24,397 Points

What are the drawbacks of using flexbox ?

Hello, I can see a lot of advantages of using css flexboxes, but I'm pretty sure that there should be some drawback as well ? Maybe not all of the browsers support them ? Or for instance, I I'll be using some kind of framework like bootstrap, maybe some conflicts may occur.

I would appreciate any help on this. Thanks.

2 Answers

Rasbin Rijal
PLUS
Rasbin Rijal
Courses Plus Student 10,863 Points

Hi Igor,

One of the major drawbacks of using flexbox is performance issues. The use of flexbox can increase the page loading time if you have a larger project. You can compare the page loading time through Chrome development tools using the flexbox and the same pages constructed without using flexbox.

Browser compatibility can be a major consideration. For example, if you consult the most excellent caniuse.com you'll see that flexbox is not supported for Internet Explorer 9. On the other hand, if you are working on a cutting edge music site for a younger audience, you can probably user newer technologies like flexbox.

Not sure about mixing flexbox with different frameworks. I would think they could indeed be mixed in many cases with a bit of CSS magic as needed.