What is ">" in CSS3?

Asked

Viewed 54 times

2

I’ve always had this question: what is the point of > in CSS3? I have tried to deduce its function in several files, but still not understood.

That:

nav > li > a { ... }

wouldn’t be the same as that?:

nav li a{ ... }
  • 3

    As @mgibsonbr noted and the Stock response explains, it selects all immediate/direct descendants.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.