Can i select specific div for selector

Hey folks, newbie here :slight_smile: Let’s think about scenerio like this

NAV
div1
div2
input
label
NAV

div3,

In this scenerio i want to use
" #check:checked ~ div3 { … }
But i cant select div3. Is there any chance to select div3 ?

Hello and welcome!

Yes, there are several ways with the aid of CSS, for example:

In your case div:nth-of-type(3)

Best bookmark MDN, developers helper.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.