Inheritance
Some CSS properties will inherit their value from the parent.
They have a default value of inherit. It is usually easy to guess which properties behave this way.
Common properties that inherit their values include color, text-align, and font-family.
Properties that usually do not inherit their values include margin, padding, and background.
The W3C maintains a handy property index that will tell you if a property inherits.