Home > Web Design | Web Development > Quantity Queries for CSS

Quantity Queries for CSS

Heydon Pickering with some clever CSS selectors like:

li:nth-last-child(n+6),
li:nth-last-child(n+6) ~ li { /* Selects all list items if there are 6 or more */
}

Similar to Matt Mastracci’s article where he focuses on styles for groups of specific numbers.

Direct Link to ArticlePermalink


Quantity Queries for CSS is a post from CSS-Tricks

TOP
Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Linkedin