Changing individual link colors

I am making a website where I want a certain link to display in red while the other links stay white. I went into the page properties to set the link colors, but I cannot figure out how to individually change the colors for certain links. When I changed the link color properties, it does so for all the links. Is this possible to set individual link colors, and how would I go about doing it? Thank you.

Let's say you want to have red links in your #header and green links in your #footer.
CSS:
#header a {text-decoration:none}
#header a:link {color:red}        /**unvisited**/
#header a:visited {color:gray}  /**visited**/
#header a:hover,                   /**on mouse over**/
#header a:active,                  /**on click**/
#header a:focus                   /**on tab key/active in IE**/
{text-decoration:underline}
#footer a {text-decoration:none}
#footer a:link {color:green}
#footer a:visited {color:yellow}
#footer a:hover,
#footer a:active,
#footer a:focus 
{text-decoration:underline}
HTML:
<div id="header">
<a href="some-link.html">Link in the header</a> |
<a href="some-link.html">Link in the header</a> |
<a href="some-link.html">Link in the header</a> |
</div>
<div  id="footer">
<a href="some-link.html">Footer link</a> |
<a href="some-link.html">Footer link</a> |
<a href="some-link.html">Footer link</a> |
</div>
For more on CSS pseudo classes:
http://www.w3schools.com/css/css_pseudo_classes.asp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • How can I change the link color css in one module but not the whole site?

    I have a site built in muse but using modules from BC.  I changed the link color in the css for the online store and blog but of course it is applying it to everypage.  Is there a way to change the link color in an individual BC module instead of the whole site.?  I'm new to CSS obviously.
    Thanks
    Josh

    I don't think you can do it right in Muse but you can easily if you have access to the code of the page and the css file.
    You need to create a css class something like:
    .secondLink a      {     /*  secondLink can be any class name, I just chose that randomly
         color: #990000;     /* of course substitute your color code in there
    Then in your code add:
    class="secondLink"
    to your link's <a> tag. This will give any links with the class of secondLink the color assigned. Hope that helps get you started.

  • Change Visited Link Color onClick of EPCM function

    Hi we have a link within an iview which when clicked opens another iview in the Portal Content Area. We are achieving that using EPCM.doNavigate function. The requirement is to change the link color when visited. We tried using both style sheet and also this.style.color, however, it doesn't take into affect. The same thing when used with a normal href or a js function changes its color.
    response.write("<td style='padding: background='"strImagePath"/header-background.gif'><a href=\"" + strQuickLinkName + "\"" +  " onclick=\"EPCM.doNavigate(\'" + strChildNodeName + "\'); return false;\" class='Archive'>Archive</a></td>");
    Is it that EPCM function doesn't act like normal java scripts or do we need to use any other alternative approach?

    On criagslist, however, it doesn't work.
    That sounds odd. When I visit craigslist, the links are blue; they turn purple when I hover over them, and orange when I actually click on them. And since it works on other sites, I'll venture a guess that the site was created with Windows users in mind, so it doesn't adhere to web standards, which is why it works fine with IE and Firefox, since they're both prominent browsers on Windows.
    Mulder

  • How do I stop Safari from Changing Visited Links Color's?

    I recently switched from Firefox to Safari since I find Safari much faster. I do have one annoyance though. When I click a link (especially in forums) and revisit a page with that link, Safari is changing the link's color. Firefox did this too, it changed visited links from blue to purple.
    I would like to set it somehow so Safari doesn't change the color of visited links at all. Is this possible? When I googled I saw many different posts about using custom made CSS style sheets. I just want to get an 'official' or more relevant answer since many opf those posts were years old. I'm using the latest Safari.
    Thanks!

    AFAIK, it's not possible with preferences, per se. See http://discussions.apple.com/thread.jspa?messageID=7183566 and http://www.yourhtmlsource.com/stylesheets/csslinks.html for possible hints. You might also investigate modifying one of Safari's css files, inside the Safari app—left as an exercise, with no guarantees that you won't cripple something.

  • Change visited link color in Safari 5.1.3

    Visited link colors in Safari, most notably visited Google links when I return to the search page, don't change colors as they used to do...  Actually, I think it's been that way for a long time (years) now but I am just now coming back around to being interested in why and if there is a way to get back to the days where new links were BLUE and visited links were GREEN (or whatever color you wanted)... 
    Is this still possible with the new Safari and if so, how do you go about setting this visted link color preference???
    thanks... bob...

    This appears to be an issue affecting most versions of Safari from about version 5 onwards.
    I recently experienced it with Safari version 5.0.6 and eventually found a fix adequate for my purposes.
    1 - Sometimes simply selecting 'Private Browsing' (on Safari menu) and then deselecting it cures the problem.
    2 - If that does not work I use the following Terminal command which has, so far, worked every time:
    defaults write com.apple.Safari RegisteredSafariSyncClient -bool false
    I must point out that I do not intend to use any sync services but it appears that if Safari gets confused it is necessary to use this command to reset its sync services.
    3 - If you don't like using the Terminal command you could trash the following preference file although this more brutal approach is more likely to lose data:
    ~/Library/Preferences/com.apple.Safari.plist
    Quit from Safari before attempting 2 or 3.
    I have only tested the Terminal command on Safari 5.0.6 on a Leopard G4 without any user defined sync services but it will probably work on other versions and OSs. It is always safest to backup first.

  • Change text "link" color only in Spry Tab content area

    I need to have multiple text link colors in my site for light
    and dark background colors. The only regions in my site that have a
    white background are in the Spry Tab Panel content area. I can't
    figure out how to change the text color for text links in the spry
    content only. I tried to add a:link ..etc... to the style sheet,
    but it did not effect anything
    (I also need to clean my style sheet (s). But that comes
    next.
    Here
    is a Link to a Sample Page in my site
    null

    Here is the SpryTabbedPanels style sheet in my site. I can't
    seem to figure out the changes I need to make to effect the content
    area.
    I tried to add the following (see .TabbedPanelsContentGroup
    below)
    a: link {
    color: #0099CC;
    text-decoration: none
    a:active {
    color: #99CC33;
    text-decoration: none
    a:visited {
    color: #0099CC;
    text-decoration: none
    a:hover {
    color: #99CC33;
    text-decoration: underline
    @charset "UTF-8";
    /* SpryTabbedPanels.css - version 0.4 - Spry Pre-Release 1.6
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights
    reserved. */
    /* Horizontal Tabbed Panels
    * The default style for a TabbedPanels widget places all tab
    buttons
    * (left aligned) above the content panel.
    /* This is the selector for the main TabbedPanels container.
    For our
    * default style, this container does not contribute anything
    visually,
    * but it is floated left to make sure that any floating or
    clearing done
    * with any of its child elements are contained completely
    within the
    * TabbedPanels container, to minimize any impact or
    undesireable
    * interaction with other floated elements on the page that
    may be used
    * for layout.
    * If you want to constrain the width of the TabbedPanels
    widget, set a
    * width on the TabbedPanels container. By default, the
    TabbedPanels widget
    * expands horizontally to fill up available space.
    * The name of the class ("TabbedPanels") used in this
    selector is not
    * necessary to make the widget function. You can use any
    class name you
    * want to style the TabbedPanels container.
    .TabbedPanels {
    margin: 0px;
    float: right;
    clear: none;
    width: 82%; /* IE Hack to force proper layout when preceded
    by a paragraph. (hasLayout Bug)*/
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 2px;
    padding-left: 0px;
    /* This is the selector for the TabGroup. The TabGroup
    container houses
    * all of the tab buttons for each tabbed panel in the
    widget. This container
    * does not contribute anything visually to the look of the
    widget for our
    * default style.
    * The name of the class ("TabbedPanelsTabGroup") used in
    this selector is not
    * necessary to make the widget function. You can use any
    class name you
    * want to style the TabGroup container.
    .TabbedPanelsTabGroup {
    margin: 0px;
    padding: 0px;
    /* This is the selector for the TabbedPanelsTab. This
    container houses
    * the title for the panel. This is also the tab "button"
    that the user clicks
    * on to activate the corresponding content panel so that it
    appears on top
    * of the other tabbed panels contained in the widget.
    * For our default style, each tab is positioned relatively 1
    pixel down from
    * where it wold normally render. This allows each tab to
    overlap the content
    * panel that renders below it. Each tab is rendered with a 1
    pixel bottom
    * border that has a color that matches the top border of the
    current content
    * panel. This gives the appearance that the tab is being
    drawn behind the
    * content panel.
    * The name of the class ("TabbedPanelsTab") used in this
    selector is not
    * necessary to make the widget function. You can use any
    class name you want
    * to style this tab container.
    .TabbedPanelsTab {
    position: relative;
    top: 1px;
    float: left;
    padding: 4px 10px;
    margin: 0px 1px 0px 0px;
    background-color: #CCCC99;
    list-style: none;
    border-left: solid 1px #CCC;
    border-bottom: solid 1px #999;
    border-top: solid 1px #999;
    border-right: solid 1px #999;
    -moz-user-select: none;
    -khtml-user-select: none;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    /* This selector is an example of how to change the appearnce
    of a tab button
    * container as the mouse enters it. The class
    "TabbedPanelsTabHover" is
    * programatically added and removed from the tab element as
    the mouse enters
    * and exits the container.
    .TabbedPanelsTabHover {
    background-color: #99CC33;
    color: #000000;
    /* This selector is an example of how to change the
    appearance of a tab button
    * container after the user has clicked on it to activate a
    content panel.
    * The class "TabbedPanelsTabSelected" is programatically
    added and removed
    * from the tab element as the user clicks on the tab button
    containers in
    * the widget.
    * As mentioned above, for our default style, tab buttons are
    positioned
    * 1 pixel down from where it would normally render. When the
    tab button is
    * selected, we change its bottom border to match the
    background color of the
    * content panel so that it looks like the tab is part of the
    content panel.
    .TabbedPanelsTabSelected {
    background-color: #FFFFFF;
    border-bottom: 1px solid #EEE;
    color: #000000;
    /* This selector is an example of how to make a link inside
    of a tab button
    * look like normal text. Users may want to use links inside
    of a tab button
    * so that when it gets focus, the text *inside* the tab
    button gets a focus
    * ring around it, instead of the focus ring around the
    entire tab.
    .TabbedPanelsTab a {
    color: black;
    text-decoration: none;
    /* This is the selector for the ContentGroup. The
    ContentGroup container houses
    * all of the content panels for each tabbed panel in the
    widget. For our
    * default style, this container provides the background
    color and borders that
    * surround the content.
    * The name of the class ("TabbedPanelsContentGroup") used in
    this selector is
    * not necessary to make the widget function. You can use any
    class name you
    * want to style the ContentGroup container.
    .TabbedPanelsContentGroup {
    clear: both;
    border-left: solid 1px #CCC;
    border-bottom: solid 1px #CCC;
    border-top: solid 1px #999;
    border-right: solid 1px #999;
    background-color: #FFFFFF;
    color: #000000;
    a: link {
    color: #0099CC;
    text-decoration: none
    a:active {
    color: #99CC33;
    text-decoration: none
    a:visited {
    color: #0099CC;
    text-decoration: none
    a:hover {
    color: #99CC33;
    text-decoration: underline
    /* This is the selector for the Content panel. The Content
    panel holds the
    * content for a single tabbed panel. For our default style,
    this container
    * provides some padding, so that the content is not pushed
    up against the
    * widget borders.
    * The name of the class ("TabbedPanelsContent") used in this
    selector is
    * not necessary to make the widget function. You can use any
    class name you
    * want to style the Content container.
    .TabbedPanelsContent {
    padding: 4px;
    /* This selector is an example of how to change the appearnce
    of the currently
    * active container panel. The class
    "TabbedPanelsContentVisible" is
    * programatically added and removed from the content element
    as the panel
    * is activated/deactivated.
    .TabbedPanelsContentVisible {
    /* Vertical Tabbed Panels
    * The following rules override some of the default rules
    above so that the
    * TabbedPanels widget renders with its tab buttons along the
    left side of
    * the currently active content panel.
    * With the rules defined below, the only change that will
    have to be made
    * to switch a horizontal tabbed panels widget to a vertical
    tabbed panels
    * widget, is to use the "VTabbedPanels" class on the
    top-level widget
    * container element, instead of "TabbedPanels".
    /* This selector floats the TabGroup so that the tab buttons
    it contains
    * render to the left of the active content panel. A border
    is drawn around
    * the group container to make it look like a list container.
    .VTabbedPanels .TabbedPanelsTabGroup {
    float: left;
    width: 10em;
    height: 20em;
    background-color: #CCCC99;
    position: relative;
    border-top: solid 1px #999;
    border-right: solid 1px #999;
    border-left: solid 1px #CCC;
    border-bottom: solid 1px #CCC;
    /* This selector disables the float property that is placed
    on each tab button
    * by the default TabbedPanelsTab selector rule above. It
    also draws a bottom
    * border for the tab. The tab button will get its left and
    right border from
    * the TabGroup, and its top border from the TabGroup or tab
    button above it.
    .VTabbedPanels .TabbedPanelsTab {
    float: none;
    margin: 0px;
    border-top: none;
    border-left: none;
    border-right: none;
    /* This selector disables the float property that is placed
    on each tab button
    * by the default TabbedPanelsTab selector rule above. It
    also draws a bottom
    * border for the tab. The tab button will get its left and
    right border from
    * the TabGroup, and its top border from the TabGroup or tab
    button above it.
    .VTabbedPanels .TabbedPanelsTabSelected {
    background-color: #CCCC99;
    border-bottom: solid 1px #999;
    /* This selector floats the content panels for the widget so
    that they
    * render to the right of the tabbed buttons.
    .VTabbedPanels .TabbedPanelsContentGroup {
    clear: none;
    float: left;
    padding: 0px;
    width: 30em;
    height: 20em;

  • Quickly change visited link color across website?

    Hey ya'll,
    Is there a automagical way to change visited hyperlink color on my whole iWeb site in one fell swoop in other words anything faster than tediously changing each link through the GUI?
    Thanks!

    Not across the entire site but for one page I've found that if I click on the Use for New Links on Page button for one link all of the hyperlinks for that page will be converted to its color scheme. But it has to be for all the colors, normal, rollover and visited. Don't know of any way to change just the visited color for many links at a time.
    Click to view full size
    This won't work for the navbar links.
    OT

  • Script for changing individual folio colors

    Hi,
    I have a designer creating a 400+ page book where each page number is a different CMYK color based on the light spectrum (ROYGBIV). Is there a script out there that will apply a color to each page folio determined by a user's defined page range and beginning and ending of the spectrum? Thus, hypothetically, a user could assign Red (M100Y100) to Yellow (Y100) for pages 1-100 and Yellow to Green (C100Y100) for pages 101-250 and then go from Green to Red from pages 251-400.
    Thanks!
    --chung

    Let's say you want to have red links in your #header and green links in your #footer.
    CSS:
    #header a {text-decoration:none}
    #header a:link {color:red}        /**unvisited**/
    #header a:visited {color:gray}  /**visited**/
    #header a:hover,                   /**on mouse over**/
    #header a:active,                  /**on click**/
    #header a:focus                   /**on tab key/active in IE**/
    {text-decoration:underline}
    #footer a {text-decoration:none}
    #footer a:link {color:green}
    #footer a:visited {color:yellow}
    #footer a:hover,
    #footer a:active,
    #footer a:focus 
    {text-decoration:underline}
    HTML:
    <div id="header">
    <a href="some-link.html">Link in the header</a> |
    <a href="some-link.html">Link in the header</a> |
    <a href="some-link.html">Link in the header</a> |
    </div>
    <div  id="footer">
    <a href="some-link.html">Footer link</a> |
    <a href="some-link.html">Footer link</a> |
    <a href="some-link.html">Footer link</a> |
    </div>
    For more on CSS pseudo classes:
    http://www.w3schools.com/css/css_pseudo_classes.asp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • How to change individual point colors of xy graph

    Hi all,
    I would like to plot 100 xy points to a xy chart so that each of them have a different color. There is a "plot color" property and "point color" property in the property node, but for some reason those doesn't seem to have any effect on the point colors. I bet there is an easy solution for this, but I don't seem to find it...
    Marko

    It really makes little sense to plot each point twice just to make it (barely) visible in a "line only" plot, just select a plot style that contains points.
    Here's an example how you could do it.
    Message Edited by altenbach on 02-12-2008 07:39 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    plotcolor_xy.png ‏17 KB
    plotcolor-xy.vi ‏19 KB

  • Formatting does not change Visited Links color.

    When I format my links I select:
    Blue for steady state
    Red for rollover effect
    Grey for visited.
    When I publish the site via FTP the links stay blue even if you have visited them.
    Any way to make these turn gray like the formatting option indicates?
    For what it is worth I am running iWeb 08.

    Hello LDD1,
    About the CSS requirement, it is recommended to post in the MSDN forum.
    https://social.msdn.microsoft.com/Forums/en-US/home
    The professionals there will be glad to help you.
    Thanks for your understanding.
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How do you change a link color or hover color???

    Hello all,
    So far OK
    As other people have said...iweb is good for quick turn around for brochureware...
    Still exploring...Good job Apple on version 1.0
    -scott

    Hi.
    I forgot to post my WIP(work in progress)
    http://web.mac.com/macrtist67/iWeb
    -scott

  • Can't Change Link Color

    Under Page Properties/Links, I changed the Link Color and Rollover Link to Brown (640019). Then I changed the Visited Links and Active Links to Green (339900). But they show up as Blue and Purple. Here's a link to a test page.
    http://www.sneedbreedley.com/linktest.html

    You need the hash sign preceding the colour. This is what you have:
    color: 640019;
    It should be this:
    color: #640019;

  • [Locked] Link colors work in Firefox but not Internet Explorer

    http://zenfotoz.com
    I have changed the link colors by setting a CSS class to a non default color a:link to the div containing thumbnails. The site behaves as designed in Firefox, but uses default colors in Internet Explorer and no colors in Safari for windows. 
    Is this a known bug/issue with a workaround or am I just doing this incorrectly?
    Thanks,
    Erik

    You have replied to a message that's more than a year old. If you're having problems with your links, post a URL to your site, and someone can have a look to see what the problem is.
    [Thread locked because of duplicate post.]

  • Issues with link color

    Hello!
    I am trying to change the link color to black and it keeps on
    changing back to red even though I have chosen black.
    Please help me ASAP
    Thanks!

    Hello ledamonza and welcome to the BlackBerry Support Community Forums.
    Sorry to hear you are having an issue with BlackBerry Link.
    To clarify, when you go to launch Link, you are getting an error? If so, can you please provide that error as it appears? 
    Thanks!
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Why does DW change my links to blue even when I change them with CSS?

    I am having a problem with DW making my links odd colors: sometimes blue, sometimes the same color as the rest of the text. As you can see in the attached screenshots, within DW the links are the correct color (#999966), but in Chrome two of the links are correct but one is blue! I opened the file in Firefox and all three were blue.
    Any ideas? I am not much for coding, I mostly use the integrated CSS editor within DW.
    Thanks

    The reason is that the CSS for some of the link colours is missing a crucial octothorpe (# symbol)
    Change
    a:link {
    color: 999966;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    color: #999966;
    a:hover {
    text-decoration: none;
    color: ff6633;
    a:active {
    text-decoration: none;
    to
    a:link {
    color: #999966;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    color: #999966;
    a:hover {
    text-decoration: none;
    color: #ff6633;
    a:active {
    text-decoration: none;
    NOTE: the page is invisible in Internet Explorer because the opening HTML comment inside the <style> tags is missing a closing comment --> so IE thinks the entire page code is commented out.
    In Code View (starting line 47), change
    a:active {
    text-decoration: none;
    </style>
    to
    a:active {
    text-decoration: none;
    -->
    </style>

Maybe you are looking for