But as you will see when you make the screen smaller things get messed up. The first row is fine, the second isn’t and the third one is fine. No idea what i am doing wrong? It is as if the :nth-child(3n+3) for devices above 1280px is still active.
Can someone please point me in the right direction.
Unless that first selector is in a media query specifically for devices over 1280px, it IS still active. Just because you don’t reference it in the smaller media query doesn’t mean it’s not still applied - in fact, it’s GUARANTEED to be applied until it’s specifically overridden.
Hi Dave. Again thanks for the reaction! Now you’re confusing me a bit: confused: I just tried that and now the first two rows are ok, but the third is split in two separate rows
That’s what it is - it’s applying the 3n+3 instead of the 2n+2 because of how you placed the 3n+3 in the responsive.css. Put the 3n+3 first, and it’ll be correct.
(Thanks @SamA74 - I could see what was happening, but the obvious stick hadn’t hit me hard enough yet to figure out why)