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 trialRita Rani Paul
Front End Web Development Techdegree Student 10,189 Pointssass
I want to change the default colour of a parent div and I tried -> .grid_col--3{ .link &{ background-color: white !important; } } and it gives the following output in css .link .grid_col--3 { background-color: white !important; } }
but it doesn't give the required output in the browser and even i don't know if this is the right way? can somebody please help? Regards
1 Answer
Henrik Christensen
Python Web Development Techdegree Student 38,322 PointsIs it on purpose that you use -- instead of just - in col--3?
Rita Rani Paul
Front End Web Development Techdegree Student 10,189 PointsRita Rani Paul
Front End Web Development Techdegree Student 10,189 PointsIts a BEM pattern to write a class name. Here is a link to the course : https://teamtreehouse.com/library/modular-css-with-sass/sass-and-bem/the-bem-pattern