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

Erik Nuber
Erik Nuber
20,629 Points

.no-flexbox class when creating fallback CSS.

Would like to know why this is being used and, how it actually is working within the CSS when it doesn't seem to reference a class in either the HTML or the modernizr.js file.

We included a Modernizr.js file and linked it via a script but otherwise, there isn't a class for "no."

1 Answer

christophe Bonge
christophe Bonge
6,618 Points

hi, after linked modernizr.js to your html file, if you emulate this file in IE 9 ( which doesn't support flexbox ) you will see in the IE9 dev tools a class="no-flexbox" in your HTML element . This is the class you will use to make a fallback for IE 9.