/* At most 3 (3 or less, excluding 0) children */ ul:has(> :nth-child(-n+3):last-child) { outline: 1px solid red; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter