Hyperlink color changes

Issue

Users is trying to change a color of a certain character style being styled as a link in the CSS, for example:

a.Glossary:link
{ color: Green } 

The issue is that the a links get defined before the selector, so that it will adopt whatever color you have set for the a tag.

Solution

The solution is to use inheritance to make certain elements for the link (a tag) adopt the character style (span tag) in what as known as inheritance, for example:

span.Glossary > a
{
color: green;
} 

This makes the link element that is selected as class "Glossary" inherit the span tag that is the color green. For more information on inheritance, please refer to this link

CSS tutorial

LaurenLever/@Solutions/Output/CSS Selector Inheritance (last edited 2013-03-04 17:42:56 by LaurenLever)