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 trialRyan Straker
Courses Plus Student 1,784 PointsWith regards to styling the education elements only descendant of the education ID...
I thought an ID could appear only once per document? If this is the case, wouldn't using a descendant selector be redundant? I'd have thought a class would have been more appropriate.
1 Answer
Sergio Andrés Herrera Velásquez
Courses Plus Student 23,765 Pointsyou could use the selector when you want to specify an element within the container element.
An example of that wouldl be for example selecting an id of #nav, but targetting the links inside the nav, for a specific state
#nav a :hover{
border-bottom:5px solid red;
}
Hope this helps