You can use contextual selectors to format nested lists. The following table includes the contextual selectors for one level of nested lists.
Contextual Selector | Example |
---|---|
ol ol |
|
ol ul |
|
ul ul |
|
ul ol |
|
ul ul { color: blue; }
ul ol { color: green; }
ol ol { color: red; }
ol ul { color: yellow; }