Different colours for links - Post ID...

User 122279 Photo


Senior Advisor
14,624 posts
Online Now

This post was moved from Suggestions for new programs:

james murphy wrote:
i would like to be able to change any link on the page the color i like, instead of only having the option of changing everty link on the page, i made a navigation bar, with a black background, and i wanted to links on it to be white in color, but then i realised i had a white background for the site, so anytime i put a link in that wasnt on the black navigation bar i had a problem... im still stuck at the moment, im new at using coffeecup so there might already be a way, if there is can someone please help me out is there a way to change individual links on a page instead to having to change them all? thanks.


You can achieve this with CSS. You can make any links the colour of your choice.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 126492 Photo


Ambassador
1,525 posts

Hi james

You need something similar to this as a separate css style sheet, or you can add the main part into your own css section.

<style type="text/css">
.whitemenu a:link {
color: #FFFF66;
text-decoration: underline;
}
.whitemenu a:visited {
color: #CCCCFF;
text-decoration: underline;
}
.whitemenu a:link:hover {
color: #FFFFFF;
text-decoration: underline;
}
.whitemenu a:active {
color: #FF99CC;
text-decoration: overline underline;
}
</style>


Change the colour values to whatever you want

Then just use the class="whitemenu" where you want the different coloured links to show.

example

<div class="whitemenu"><a href="http://www.freebits.co.uk/css-text-hyperlink.html">different colour link</a></div>


Jim
---------------------------
User 65691 Photo


Registered User
3 posts

I'm having this problem, too, but the whole idea behind VSD is so I won't HAVE to do this!!! Does CoffeeCup not provide a setting for this in the software??
User 187934 Photo


Senior Advisor
20,266 posts

Check out allowing advanced text.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.