by JelteF · 10y ago · 0 comments
ul li:nth-child(-n + 3) {
background: red;
}
See the last example on this page: https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-childI assume that this is your github profile ? https://github.com/JelteF