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:

http://jsbin.com/asipap/4/edit

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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -