CSS Style Effect

AXISHK
AXISHK used Ask the Experts™
on
Any idea why the CSS Style ".nav > li > a" is applied to element in file 1 but it doesn't apply to element in file 2 ?

Thx
CSS1.png
CSS2.png
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Director of Technologyy
Commented:
Your CSS rule has > in it which is a direct descendant. Since the second one has another ul inside it the li is no longer a direct descendant.

Author

Commented:
Thx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial