Hello everyone,
I haven’t been there on forum for a quite long while. I took the front end course, but mozilla learning area has always being with me. I recap some things since recent time.
I’m doing a Selectors Three Task, and would like to understand, the selector I wrote not working:
table > :nth-child(2n){
background-color: #333;
color: #fff;
}
I was inspired by the re9inee solution of different point from this task, when he wrote such a selector:
container > :first-child {
font-size: 150%;
}
What is wrong with the :nth-child pseudo class that it’s not working the same way in the combination with the “>” combinator?
Demo
Kind regards,
Denis