| Start |
|---|
| Automatic inheritance Inheritance the a fundamental mechanism of CSS by which the computed values of some properties of an element are applied to its' children. This is particularly useful when you want to set a global style to your elements rather than having to set said properties to each and every element in your markup. Common properties that are automatically inherited are: Assume the following stylesheet: This will apply |
| Enforced inheritance Some properties are not automatically inherited from an element down to its' children. This is because those properties are typically desired to be unique to the element (or selection of elements) to which the property is applied to. Common such properties are However, sometimes inheritance is desired anyway. To achieve this, we can apply the Assume the following stylesheet: This will apply Syntax
|
Read Article
https://develop.horje.com/learn/1434/reference