Changing visit color for one element

Posted on 2005-04-29
Last Modified: 2010-08-05
I have a page with style sheet.  I need to override the style on one specific element on the page.  I need this link to not change colors when visited.  Can I do something like this with the visited color?
 <a style= "font-size: 8pt; font-family: Verdana; visited-color: White; text-decoration: none"
  href = "MyLink.asp" >
  Go Home
Question by:TommyTupa
    LVL 31

    Accepted Solution

    You can use CSS like this to do it

    a.vClass:visited {color: blue;}

    <a href="" style="color:blue" class="vClass">Google</a>
    LVL 13

    Author Comment

    Perfect.  Got it working too.

    LVL 31

    Expert Comment

    thx for the points.  :-)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Introduction This warning has to be one of the most commonly issued warnings in the history of PHP.  The article explains why this warning arises and what to do to mitigate the problem. How this Happens HTTP headers include many different kinds…
    Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
    In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
    In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now