jeudi 29 août 2019

Selecting an input within a label in CSS?

I have a problem selecting input element when it's inside a label usually something like this:

<label>
    <input type="checkbox" />
</label>

When i try to do something like that in CSS:

input: checked ~ ul {
    #Some styling here
}

it doesn't work, im new to this and i hope u could help me!




Aucun commentaire:

Enregistrer un commentaire