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!

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

.no-flexbox

Hi, I dont understand something you put the rule .no-flexbox in the style.css, but you didn't put the selector anywhere in the HTML.

2 Answers

Andre Romano
Andre Romano
8,809 Points

Hey its probably for use with Modernizr, http://modernizr.com/ , it adds those classes through javascript when the page loads.

That one in particular gets used when the browser doesnt support FlexBox, so if your design relies on FlexBox you can target that .no-flexbox class and fix the styling for old browsers.

Thanks for answer, you mind that .no-flexbox rule target to js of the modernizr?