3 ms·
It is! And I had the same conclusion when it came to highlight the active section… it's not worth repeating the markup. Maybe something with `:focus-within` cou
by john-doe 6y ago
It is! And I had the same conclusion when it came to highlight the active section… it's not worth repeating the markup. Maybe something with `:focus-within` could work?
- ImpressiveWebs 6y agoI actually wrote about this 10 years ago, but mine was with just anchors and some CSS2: https://www.impressivewebs.com/javascript-content-switcher-without-javascript/ https://www.impressivewebs.com/javascript-content-switcher-w... Same overall principle with even deeper old browser support.