Login
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
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?
Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Roast topics
Find topics
Find it!