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 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)