My Vision:
I have a vision of a table with alternating row colors, but I need to display the data in a tree structure with multiple levels. Despite this requirement, I still want it to maintain the appearance of a table with alternating row colors. Essentially, I want the best of both worlds.
https://i.sstatic.net/7OAWW.png
Current Progress
https://i.sstatic.net/462ep.png
The challenge I'm facing is that each level has its own ul/li tags, making it complicated to use the nth-child selector for styling. The alternating row colors for each level clash with one another, resulting in a visually unpleasing design.
Current CSS:
li:nth-child(odd)>div {
background-color: lightblue;
}
Seeking CSS Solutions
To tackle this issue, I experimented with a more complex tree structure for testing purposes.