4 ms·
Isn't this exactly the same as css-tabs (e.g. https://css-tricks.com/css3-tabs/ https://css-tricks.com/css3-tabs/ from 2015), just you styled the tabs header li
by ivanhoe 6y ago
Isn't this exactly the same as css-tabs (e.g. https://css-tricks.com/css3-tabs/ https://css-tricks.com/css3-tabs/ from 2015), just you styled the tabs header like a top menu?
- john-doe 6y agoIt 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.