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 Flexbox Layout Understanding Flexbox Creating a Flex Container

Piotr Manczak
.a{fill-rule:evenodd;}techdegree seal-36
Piotr Manczak
Front End Web Development Techdegree Graduate 28,940 Points

There are two .css files used for this lesson. Why are we using two files? Can't we just use one and fit everything in?

We have two separate files that are linked to the html document. Why? Is one of them not enough? Has it been arranged this way because it's clearer?

1 Answer

I'd say the idea is that the styles on page.css are the non-flexbox properties and are just plain css to style the page. The flexbox styles are kept in flexbox.css. To answer your question, yes it has been arranged this way to put emphasis on the flexbox styles since this course is about learning flexbox and not focusing on ordinary css.