I have one base .base{} in my CSS file with couple properties. I want to change only color and other properties to stay same. How to inherit this base class inother classe
Something like this:
.base { width:100px; } div.child { background-color:red; color:blue; } .child { background-color:yellow; } hello world
The background here will be red, as the css selector is more specific, as we've said it must belong to a div element too!
see it in action here: jsFiddle