+ 1

What's the difference between normal and inherit?

2nd Aug 2016, 1:59 PM
Tyler Charton
1 Respuesta
+ 2
The inherit keyword specifies that a property should inherit its value from its parent element. For example: --CSS-- span { color: blue; } .inherited span { color: inherit; } ---HTML--- <div class="inherited" style="color:green"> Here the <span>span element</span> is green because it inherits from its parent, the Div element. </div>
5th Aug 2016, 1:34 PM
wcountiss
wcountiss - avatar