CSS Inheritance: An Introduction

0
0
views

It’s common to see inheritance in action in real life. Unless some other factor comes into play, it’s often the case that tall parents have tall children, and so on. We can see something similar in CSS. If you set the color on a container element to green, then unless some rule overrides that color value, the color of all the elements inside the container will be green. The mechanism through which the value of certain properties is passed on from parent elements to child elements is called inheritance. In this article, you will learn about different aspects of inheritance…
CSS Inheritance: An Introduction