3
I know that to assemble a menu of the type accordion is like this:
<html>
<head>
<style>
.menu-sanfona li ul{
display:none;
}
.menu-sanfona li:focus ul{
display:block;
}
</style>
</head>
<body>
<ul class="menu-sanfona">
<li tabindex="0">Item 1
<ul>
<li>Item 1.1</li>
<li>Item 1.2</li>
</ul>
</li>
<li tabindex="1">Item 2
<ul>
<li>Item 2.1</li>
<li>Item 2.2</li>
</ul>
</li>
</ul>
</body>
</html>
What I would like to know is how to assemble a type of accordion menu that opens more menus inside the open menus for example
Let’s say I clicked on "Item 1" and opened a submenu called "Item 1.1". ok!
Then when I click on "Item 1.1" it shows another submenu with "Item 1.1.1", "Item 1.1.2", "Item 1.1.3" ... What would this code look like using only HTML and CSS ??
Would you have some example online so I understand better and can help you?
– André Albson