3 ms·
A cleaner way of targeting elements with a specific number of children exists using EQCSS for Element Queries: @element '.sidebar' and (max-children: 5) {
by err4nt 12y ago
A cleaner way of targeting elements with a specific number of children exists using EQCSS for Element Queries:
@element '.sidebar' and (max-children: 5) {
.widget h3 {
font-size: 125%;
}
}
Check out the min-children/max-children examples on: http://elementqueries.com/test.html http://elementqueries.com/test.html