Having some issues with the :nth-child pseudoclass. My goal is to target the 9th child, followed by every subsequent 6th child.
Starting with the 9th, then 15th, 21st, 27th, 33rd, and so on.
I attempted to achieve this using the following CSS:
.child-div:nth-child(9n+6) p {
margin: 0;
}
Unfortunately, it didn't work as expected.
I experimented with different formulas like 10n+6, 6+9n, and others. I even consulted a tutorial from this source, but couldn't find a solution.
If anyone knows why the formula isn't working or if there are limitations to the format, please advise. Can we only use formulas like 4n+4 or similar patterns?