FYI You can nest <details> tags within <ul> and vice versa to create a collapsible tree menu without JS or CSS

E.G.
<details>
<summary>Root</summary>
<ul>
<li>
<details>
<summary>Sub</summary>
<ul><li>etc...</li></ul>
</details>
</li>
</ul>
</details>

@cypnk
Whoa! I have been writing static pages for 10 years now... I have to try this out...

@cypnk
Also, I need a direct line to your brain. You have rather me so many things just in the past week...

Follow

@herag I have my moments ;)

BTW, this was from my current experiment in trying to create a little editor plugin for my blog script

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!