Forum Moderators: not2easy
In the past, when I have tried using CSS to change link colors, it has ended up affecting the entire page (i.e., all links turning the same color), rather than selectively applying a particular CSS link color to the selected text.
Is there any way to do this with CSS? I am using a WYSIWYG editor (Golive). Any help would be appreciated!
You can do this quite easily with CSS. Probably the best way is to use descendant selectors.
For example, if you put a div around your different sections, eg:
<div class="wb">
stuff on a white backround
</div>
<div class="rb">
stuff on a dark red backround
</div>
You can then apply different CSS to the sections, eg:
div.wb a:link {
color: blue;
}
div.rb a:link {
color: white;
}
The easiest way to have different styles for different parts of the text is to use classes.
Hope this helps.