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 trialAnil Basaran
Front End Web Development Techdegree Student 3,167 Pointsİnstead of using .main-content p {} i tried p .main-content {} but it didn't work. Aren't they interchangeable?
Descendant Secector example question/ different approach
2 Answers
Melissa Mullinax
1,197 Pointsyou are targeting main-content
.main-content
Anil Basaran
Front End Web Development Techdegree Student 3,167 PointsThank you for your response but i guess i am asking ; well i am targeting the p element which has main content class
so can't i arrive there instead of looking at all the main-content class elements and choosing onr which has a p element.
i can be looking all the p elements and chosing which has a main-content class. it should arrive the same conclusion, but it doesn't :S