Options:

Change a:active color in CSS

  • Hello,
    I see the a:acive link color cannot be changed in the CSS editor, and will be the same color as the hover text.

    How do i change it for body, alt text 1 and alt text 2?

    Thanks

    Late


  • Ah!

    Right i have added the following code to the extra CSS attributes at the end of the main css style sheet editor and it worked perfectly.

    Many thanks.

    /* ***** Added to change a:active links to correct colour. */
    a:active
    {
    color: #2370B6;
    }
    .alt1 a:active, .alt1Active a:active, .alt2 a:active, .alt2Active a:active,
    {
    color: #2370B6;
    }


  • If i set it to save the style sheet and edit it then it works, but i would rather be able to just add the extra CSS code to the template?

    Please help


  • All sorted, thanks for the help.


  • I tried that, but it didnt work. What should should i be adding?

    I tried:

    a:active {color: #ffffff}


  • I have tried adding it into the Extra CSS attributes for the style (using the code: a:active {color:#FFFFFF}; ) but if i check how it has been added by looking at the source for the page i see the following, which is not the correct format for style sheet.


    .alt1, .alt1Active
    {
    background: #282828;
    color: #d0d0d0;
    a:active {color:#FFFFFF};
    }
    .alt1 a:link, .alt1_alink, .alt1Active a:link, .alt1Active_alink
    {
    color: #2370B6;
    }
    .alt1 a:visited, .alt1_avisited, .alt1Active a:visited, .alt1Active_avisited
    {
    color: #2370B6;
    }
    .alt1 a:hover, .alt1 a:active, .alt1_ahover, .alt1Active a:hover, .alt1Active a:active, .alt1Active_ahover
    {
    color: #F0E80A;
    }


  • You may add it under "Extra CSS Attributes" for that class.


  • anyone?


  • Yes, you need to add it to "Additional CSS Definitions" not "Extra CSS Attributes". They perform to very different functions.


  • You would add it like any other CSS declaration.



    Though adding it under Additional CSS Definitions is the most appropriate place to do this.


  • What box did you add it in?

    You need to add it to the Additional CSS Definitions at the bottom of the page, not the small textbox to the right of the CSS editor for Alt1.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Change a:active color in CSS , Please add it free.
    edit