inherit simply means that the style will be inherited from the parent element. For example:
jsFiddle
HTML
<div class="blue"> <div class="inherit">I also have a blue background!</div> </div>
CSS
.blue { background: blue; } .inherit { background: inherit; }
Using inherit on background , as a rule, will not do you much good, and, as a rule, gives the same thing as the transparent background by default. In the above example, nothing is added, it places a blue background on top of a blue background, the main purpose of inherit used for certain default values, such as color and font-size .
Daniel Imms
source share