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 trialGlassbear CommV
5,195 PointsWhen would you use more than one stylesheet? What is the purpose of having more than one?
I don't quite understand in which case it would be necessary to separate the styles into two or more stylesheets.
2 Answers
Logan R
22,989 PointsHaving more than 1 stylesheet is great for templating. Take for example the Bootstrap framework. I can include the Bootstrap CSS stylesheet and get access to all of the styling. But I don't want to change or update their stylesheet, instead I want to override their changes in my own stylesheet. This is also helpful if I want to 'update' my Bootstrap library. All I need to do is overwrite the existing Bootstrap CSS stylesheet. I don't have to worry that my custom changes may be ruined or erased.
Hopefully this helps clarify some.
Glassbear CommV
5,195 PointsAww, thank you so much for your answer. I guess since I don't know Bootstrap yet I couldn't see the use of it!