loading...

re: CSS Specificity VIEW POST

FULL DISCUSSION
 

Hi, Emma!
Thank you for this great article, it helped me greatly;

Look at the screenshoot, it seems to me it doesn't work properly;
Because:

combinator selector > selects li elements that are direct children of an element of that id.

Check this 😉

logo

 

I think you are right. I found that strange too.

 

You're right, it should be:

nav#nav li:hover {
    color: purple;
}
Enter fullscreen mode Exit fullscreen mode

Otherwise, excellent article!

Code of Conduct Report abuse