jeudi 13 août 2015

Cancelling a CSS rule

Let's say we have the following CSS default rule X, declared in a WordPress child theme:

.btn { background: url("btn.jpg"); }

And this rule Y, declared in commercial parent WordPress theme:

.btn:hover { background: gray; }

Can I somehow tell the browser "ignore Y", so that nothing will happen when hovering the .btn element?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire