Categories

inheritance

Margarett Ortiz May 23, 2016
No votes yet.
Please wait...

Inheritance in CSS is the mechanism through which certain properties are passed on from a parent element down to its children.

Inheritance lets us declare properties on high-level elements and allows those properties to trickle down to all descendant elements.

Inheritance is employed to help reuse existing code with little or no modification.

For example, if you set the body tag of a page to a specific font, that font will be inherited by other elements, such as headings and paragraphs, without you having to specifically write as much.

Every element in an HTML document will inherit all inheritable properties from its parent except the root element (html), which doesn’t have a parent.

Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

Comments are closed.