Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

HTML tree views

Name: Anonymous 2020-06-28 8:48

Why do we have a shitload of toy elements like <dicksizepicker>, but not one for a very common requirement of displaying hierarchical elements? And why does every autistic Linuxer write their own, half-functional library for that?

Name: Anonymous 2020-06-29 9:39

I don't know if this is well known, but this is something I figured out a while ago.

<!DOCTYPE html>
<html>
<body>
<details>
<summary>The root</summary>
<details>
<summary>Child 1</summary>
<p>Leaf</p>
</details>
<details>
<summary>Child 2</summary>
<p>Leaf</p>
</details>
<details>
<summary>Child 3</summary>
<details>
<summary>Grandchild 1 of 3</summary>
<p>Leaf</p>
</details>
</details>
</details>
</body>
</html>


Info about the details tag: https://www.w3schools.com/tags/tag_details.asp

Name: Anonymous 2020-06-29 9:42

>>9
Oh, and add
details {padding-left: 2em;}
as a piece of css to get the shape of the tree structure.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List