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 trialMosneagu Sebastian
4,518 PointsWhy would you ever use 2 stylesheets?Is it so you can kinda section it out when you have a big project....or?
.
3 Answers
Ari Misha
19,323 PointsHiya there! When your application/website scales , its hard to debug through 1000 of lines of codes and it might crash in future. So in order to optimize and maintain your code , its recommended to modularize your code. Modularize is just a fancy of saying chopping off some piece of code according to their functionalities. Different files/directories represent different functionality whether its your css or sass or even bootstrap or any application.
~ Ari
REM Team
Courses Plus Student 4,471 PointsYou may have a few different templates set up for a larger site, such as a CSS page for the Home page and another for internal pages of the site. You would only generally call one CSS page for each template, but you would still end up having a couple of stylesheets in the project as a whole. Hope this helps!
Mosneagu Sebastian
4,518 PointsIt does,thanks..
Michael Culler
7,363 Pointsi always just use the one css file for the entire page.....however you will always have a seperate css file if and when you use normalise.css
Mosneagu Sebastian
4,518 PointsMosneagu Sebastian
4,518 PointsThanks for a very clear and fast answer.Have a nice day.