CSS ul > li selector selecting nested lists -
i've been reading everywhere, , i've read select list without selecting nested list. need have this
.myclass > ul > li //or ul > li i've been trying work unsuccessfully. selector selecting everything, including nested list. missing?
please see code on js bin:
some css styles inherited parent elements unless style explicitly overrides it, you've set color list items, haven't overridden other matched selector. adding li { color: black } should solve issue.
Comments
Post a Comment