mardi 1 décembre 2015

CSS selector for an element if body has class

Im trying to apply a class to an element nested within a few elements of the body only if the body element has a certain class?

currently body has the class

    notie

I now have a div with another class

   stuffForNotIE

Im trying to achieve this by using the following selector

    body.notie > div.stuffForNotIE

this obviously isnt my real class names but Its a good example of what im trying to achieve?

Any ideas on the correct selector as the above is not working




Aucun commentaire:

Enregistrer un commentaire