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 trialMikael Lindberg
965 PointsIs there any reason not to let CSS files be in the same folder as HTML files?
Both Nick and Guil put their CSS files in a seperate folder. If they already have explained why, pardon this question, it must have flew straight past my head.
So, are there any pro's and con's about this, except being slightly more systematic?
3 Answers
Aditya Thoomati
11,729 PointsYes, you can have the CSS files in the same folder. Having a folder helps your project structure stay clean. That's it! :)
Justin LeFurjah
12,347 PointsI second what Aditya said. If you have many CSS files this is especially troublesome. Then imagine if you put a bunch of javascript files in your general project folder as well. It is easier to deal with if everything has its own folder.
Ricky Catron
13,023 PointsIn addition a lot of frameworks such as Flask or Django require that CSS and JavaScripts files be stored in a static directory.
Goodluck! --Ricky