UI Deploy

Curated, Short, Web UI Dev we Love.

Only You: Using only-child in CSS

One step above the :empty selector, :only-child selects elements that are entirely alone within their containers. You might wonder where this could possibly be employed in your CSS, but use-cases are actually surprisingly common

view source

Advertisement