jeudi 25 janvier 2018

CSS3 select an ID name for check boxes apply changes

I'm on a web app build and I encounter some trouble to select multiple ID. I would like to use theses IDs to apply movement on a wrapper, but the selector don't make the job.


there is the unuseful code:

div[id*="article_"]:checked ~ .article_wrapper {moving wrapper code}

The name selector need to be effective with ".article_001" to ".article_999", so I don't want to have a huge copy/paste on my stylesheet.


If someone know how to do it perfectly and of course I don't want to use something else to CSS selectors.




Aucun commentaire:

Enregistrer un commentaire