jackmyers.info

Example of forced inheritance

Link colors are usually set by the user styles or by browser styles. However we can force inheritance from the parent containing tag. For example, this is a paragraph with a hyperlink:    CSS index page.

And this is a section with a hyperlink:    CSS index page.

The color of this paragraph is OliveDrab. And here is a hyperlink:    CSS index page.

The color of this section is FireBrick. And here is a hyperlink:    CSS index page.

Modified: