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

Lee Cockcroft
Lee Cockcroft
5,147 Points

flex-box

Hi All,

I have just started the "Flex-Box Layout" module.

I aware this can only be used on the latest browsers.

However, If i create my website with the majority of flex box, how would older versions be able to view my website? What would I need to do in order for all browsers to view this.

Thanks Lee

2 Answers

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

The first thing to do is to look at the global support for flexbox which you can do by using caniuse.com and searching Flexbox. You can see that Flexbox has excellent support with only partial support for internet explorer which is being slowly phased out.

There's 93% support out there including prefixed support.

You can use browser vendor prefixes even today to include support on earlier browsers but bear in mind -webkit- is currently the only supported browser prefix.

display: -webkit-flexbox;