samedi 24 octobre 2015

How to change css of checked-box text

I want to change the css of text when it is checked.

Example: change the text colour of cheap when it is checked.

I tried the following code but it didn't worked so what to do for the following change?

input[type=checkbox]:checked + label {
  color: #f00;
} 

Any help will be appreciated. Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire