Login
Roast topics
Find topics
Find it!
From:
tobiasahlin.com
(Uncensored)
subscribe
Hiding empty elements with CSS :empty and :has() | Tobias Ahlin
https://tobiasahlin.com/blog/hiding-an-element-if-its-empty/
links
backlinks
Roast topics
Find topics
Roast it!
You might be used to toggling classes on elements to handle state styles. What if we could just write CSS that reflected the state of the DOM?