Nth child not selecting.

I'm trying to select the first div and move it around with position absolute https://codepen.io/eforempanada/pen/WNqmRpP
2 Replies
Chris Bolson
Chris Bolson2mo ago
In this case you need to use .border:nth-of-type(1) Alternatively you could use the newer “of” selector however this still lacks some browser support :nth-child(1 of .border) { Actually this is now at over 91% so has better coverage than I thought.
Kypac
Kypac2mo ago
Thanks!
Want results from more Discord servers?
Add your server