Headings: [Skip]

Web-Design Tutorials by Dr Sam

CSS Validity

Menu [Skip]

Color Styles

Further Examples

color: inherit;

Similarly, when we wish to create a CSS class for a background color that we will be using with different foreground colors, then we may specify the color as inherit, like this for example:

.myOtherClass { background-color: #ffc;  color: inherit; }