Not signed in (Sign In)

Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.

Syntax Highlighting

You can highlight any code you post by wrapping it in the BBCode tags, [code lang="css"]code here[/code]. Other usable lang values are "xml", "html", "xhtml", "css", "js", "javascript", "php", "sql", "python", "py", "ruby", "rb", and "java".

Choose the Format Comments option "SyntaxHighlighter" to use this BBCode. Note that no other BBCode is supported at the moment.

    • CommentAuthorShridharV
    • CommentTimeFeb 1st 2010
     
    Hi All,

    I want to change the color of the links which are visited. Therefore, I have done the following changes to the css file: -
    a:Link
    {
    font: normal 100% Arial, Helvetica, sans-serif;
    color: #131843;
    text-decoration: none;
    }

    a:Visited
    {
    font: normal 100% Arial, Helvetica, sans-serif;
    color: #131843;
    text-decoration: none;
    }

    a:Hover
    {
    font: normal 100% Arial, Helvetica, sans-serif;
    color: #3f4f90;
    text-decoration: underline;
    }

    a:Active
    {
    font: normal 100% Arial, Helvetica, sans-serif;
    color: #131843;
    text-decoration: none;
    }

    and below that

    a.content_links:Link
    {
    color: #131843;
    text-decoration: underline;
    }

    a.content_links:Visited
    {
    color: #FFFFFF;
    text-decoration: none;
    }

    a.content_links:Hover
    {
    text-decoration: none;
    }

    content_links is a class that is used in the code.

    However when I check the code, I find the color of the links changed even before I click on any link. The view source shows the following: -
    <a target="_self" class="content_links" id="randomLink" href="#" onclick="javascript:submitForm('/someProject/DoSomeAction.do?valueid=1234&trigger=newtrigger');return false;">

    Please let me know what changes I need to do in order to make this code work.

Valid XHTML 1.0 Strict

Valid CSS!