r/css • u/teotimepacreau • 7d ago
Article Dynamic table of content with one line of CSS
ol {
scroll-target-group: auto;
}
35
Upvotes
r/css • u/teotimepacreau • 7d ago
ol {
scroll-target-group: auto;
}
6
u/Gibbon_Ka 6d ago
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/scroll-target-group#basic_scroll-target-group_usage
noice! didn't know that
3
u/devolute 6d ago •
Instructions unclear.
What NPM library do I install to get this?
1
u/HeracliusAugutus 3d ago
Doesn't work on Firefox or Safari yet though