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 CSS Layout Techniques Flexbox Layout Providing Fallbacks with Modernizr

Ehsan Raza
Ehsan Raza
263 Points

What does he mean by syntex towards the end?

And those notes are confusing. Can anyone explain plz?

Your question is not clear

Ehsan Raza
Ehsan Raza
263 Points

I'm not sure if you can see the video that my question is referred to? Well here it is; http://teamtreehouse.com/library/css-layout-techniques/flexbox-layout/providing-fallbacks-with-modernizr

Towards the end he says that other browsers have different syntex. Does that mean we need to use prefix vendors for all the older browsers that do support Flexbox?

1 Answer

Ahh I see the question now, pretty much when he means to refer to flexbox syntax he means how the CSS should be written for that browser. Currently flexbox is slowly being integrated into current browsers and based on this chart. The only browsers that require the -webkit- prefix is safari and ios mobile browsing. The teachers notes refers to documentation for Internet Explorer and how that browser likes to read CSS code for flexbox.

So in the end if there is a feature that you coded that is not working well on a specific browser just refer to that browsers documentation to see if they want something coded slightly different.

Ehsan Raza
Ehsan Raza
263 Points

So we use vender prefixes for all the older browsers in order for the flexbox to work?

Only for the browsers that don't have it natively supported such as Safari and IOS (currently)