Home » Web » CSS (page 1669)


Quantity Queries

Using :nth-child (and friends), you can write selectors that target elements when they have a certain number of siblings. So you can write CSS that, for example, styles widgets to be 33.33% wide if there are exactly 3 of them. The selectors are a bit complicated though, so this tool by Drew Minns is pretty helpful. And perhaps controversially, a ...

Read More »

Powered by WP Robot