Inheritance
inherit
intial
examples
/* global link color */
a:link { color: blue; }
/* parent */
.footer {
color: #666;
background-color: #ccc;
padding: 15px 0;
text-align: center;
font-size: 14px;
}
/* child */
.footer a {
color: inherit; /* inherit from parent: #666 */
text-decoration: underline;
}.footer a {
color: initial; /* = `color: black` */
text-decoration: underline;
}inherited properties
references
Last updated