CSS CSS Flexbox Layout Understanding Flexbox Creating a Flex Container

Piotr Manczak
Piotr Manczak
5,013 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

Dima Mykhaylov
Dima Mykhaylov
16,309 Points

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.

Piotr Manczak
Piotr Manczak
5,013 Points

Thank you for the answer, very helpful.