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 trialmelissa brown
4,670 PointsIs there a reason why he is using another css page. eg flexbox.css and page-styles css?
Can we put the flexbox coding in the page-styles css? or is this bad practice/not clean code? thanks
3 Answers
Charlie Jaime
17,351 PointsWell this is good practice to have multiple css files rather than one extremely long file with styling to several of your areas on your site/project, this helps keep things cleaner and more organized.
If you like my answer vote me up or mark-up as the best answer thank you and great coding.
melissa brown
4,670 Pointsthanks charlie, is there a general rule of when we should be separating css files?
Charlie Jaime
17,351 PointsI would say that there is no specific rule or non of which Ive heard of but more like personal preferences. My personal rule of thumb when separating css files is based on there content and location on the site. I would like tend to pair banners and header together or sidebars with main content. So just play around with it find a way that you like to organized your files and will give you quicker access to your styling without having to surf through a lot files.