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

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 90,705 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;