Very simple CSS only example, including JS-free toggling:
https://codepen.io/theprojectsomething/pen/oNQYqRw
Note: Could be simplified with the :has selector but it isn't currently supported in Firefox.
https://codepen.io/theprojectsomething/pen/oNQYqRw
Note: Could be simplified with the :has selector but it isn't currently supported in Firefox.
No comments yet.