Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1251829
    boera
    Participant

    Hi,

    I need to change the colors on three links on a particular page. This page is created without header and footer, and I essentially want to create a smaller duplicate of our footer, but this means having to change the normal link colors used for this row. I’ve looked up other threads, and have added the following custom css:

    .my-link {
    color: #ffffff;
    }

    .my-link:hover {
    color: #cccccc;
    }

    The link looks like this:
    <font size=”5″>Fram home page

    However, it isn’t working. What am I doing wrong?
    Thank you in advance for your help!
    Beate

    #1252005
    Joao
    Moderator

    Hi there,

    Please use <span style=”font-size: 5em;”> </span> instead

    Hope it helps

    Joao

    #1253041
    boera
    Participant

    Hi, thanks for responding. I’ve tried this, but the font size is now not responding. The link color is also still wrong:

    <span style=”font-size: 5em;”><a class=”my-link” href=”http://framexec.com/”>Fram home page</span>

    Thanks for helping!

    #1253148
    Rue Nel
    Moderator

    Hello There,

    Please update the code and make use of this instead:

    
    <a class="my-link" href="http://framexec.com/"><span style="font-size: 5em; color: red;">Fram home page</span></a>
    <a class="my-link" href="http://framexec.com/"><span style="font-size: 5em; color: blue;">Link Item 2</span></a>
    <a class="my-link" href="http://framexec.com/"><span style="font-size: 5em; color: green;">Link Item 3</span></a>

    Hope this helps.

    #1253254
    boera
    Participant

    That’s brilliant, thank you. Is there a way to also change the hover color? The above changed the link color, but the link doesn’t change color when hovering over it.
    Thanks!

    #1253404
    Darshana
    Moderator

    Hi there,

    Now you can use the following CSS rule for the hover style.

    
    .my-link span:hover {
        color: #336699 !important;
    }
    

    Hope that helps.

    #1256245
    boera
    Participant

    Thanks, I’ve added this to the custom CSS. What should the text look like? I’ve currently got this:

    <a class="my-link" href="http://framexec.com/"><span style="font-size: 1.5em; color: white;">Fram home page</span></a>

    #1256317
    Jade
    Moderator

    Hi there,

    That should correct. The text will initially be white and changes to the color #336699 when hovered.

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1251829 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>