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 trialSam Fellows
3,968 PointsBest applying practice for styling (Parent or Child)
Quick Question to fellow Django Learners. Is it best practice to write styling in a distributed kind of why where you have general styling at the parent level and app specific styling beneath at the child level. Or is it better to write one large piece of CSS at the parent level that deals with apps as well? I can see benefits to doing it both ways depending on the project but wondered if anyone had any practical experience with this?
Thanks!
1 Answer
Chris Freeman
Treehouse Moderator 68,441 PointsWith Django, apps can be portable and shared among other projects. So, it's best to keep the styling with the app that uses it., You can then, at the parent level, list the parent CSS last which allows the parent to override any specific child styling as needed.
Sam Fellows
3,968 PointsSam Fellows
3,968 PointsThanks!