?
Solved

How to change a.active color...

Posted on 2014-04-10
5
Medium Priority
?
168 Views
Last Modified: 2014-04-30
Hi!

In my header of my webpage, i want the a:active.color to always be white.
But on a different place on my site, i want this a.active.color to be blue color

How can i do this ?

My CSS locks like this now:

a:active {
    color: #ffffff;
}
a:visited {
    color:#ffffff;
}

Open in new window

0
Comment
Question by:team2005
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:jayakrishnabh
ID: 39991132
<style>
header a {
            color: green;
        }
        a {
            color: blue;
        }
</style>

<header>
    <a>Header anchor</a>
<header>
<section>
    <a>Section anchor</a>
</section>
0
 
LVL 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 1500 total points
ID: 39991464
 a:visited.white_active{color:#fff;}
 a:visited.blue_active {color:blue;}

<a href="#" class="white_active">Some Link</a>
<a href="#" class="blue_active">Some Link</a>

Open in new window


Or
.area_1 a:visited {color:blue;}
.area_2 a:visited {color:green;}
.header a:visited{color:#fff;}

<div class="header"><a href="#">Some Link</a></div>
<div class="area_1"><a href="#">Some Link</a></div>
<div class="area_2"><a href="#">Some Link</a></div>
<!-- below is browser default -->
<a href="#">Some Link</a>

Open in new window

0
 
LVL 2

Author Comment

by:team2005
ID: 39991578
Hi!

Have this code now:

.socialh a:link {
    text-decoration: none;
}

.socialh a:active {
    color: #ffffff;
}

.socialh a:visited {
    color: #ffffff;
}


.rapport1_del3 a:link {
    text-decoration: none;
}

.rapport1_del3 a:active {
    color: blue;
}

.rapport1_del3 a:visited {
    color: blue;
}

Open in new window


.socialh  is working fine, but
.rapport1_del3 a:link is giving me a
Underline ???
0
 
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 39991595
Can you provide a link to your test page to look at. Obviously there is something else.
0
 
LVL 2

Author Closing Comment

by:team2005
ID: 40031374
thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question