• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Difference class > li and class li

TsinJu

Well-known member
#1
The deeper i go into CSS the more i get confused ;)
Just quite a few times now i saw 3rd Party CSS Sheets using > in classes and i dont see the difference.

For Example:
A CSS Class is using .class > li
another one is using .class li
But´s not changing anything if i take the > off

(where li is also just an example, could be div too)
 

Jeremy

Well-known member
#2
.class > li implies that the li element is a direct descendent of .class.

.class li implies that the li element is a descendent of .class.