I'm attempting to add a border to specific list items in my HTML. I want the border to start from the 9th child and then continue every 4th child after that.
For clarification, I'd like the 9th, 13th, 17th, 21st, 25th... list items to have white borders and the others to not have any borders.
I attempted this in CSS:
container ul li {
width:50%;
position:relative;
}
container ul li:nth-child(n+9):nth-child(4n) {
border:1px solid #fff;
}
However, it didn't work for me. Is there another way to achieve this?