D5 Business Line
[resolved] Change font link color (4 posts)

  1. dm4n
    Posted 2 years ago #

    How do you change the colour of links?

    I am using a child theme and have changed the style.css

    a {
    color: #0DB0D8; !important;
    text-decoration: none


    but the changes don't show up.


  2. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Open your website in Google Chrome.
    Right click on the link you want changed.
    Select the 'Inspect element' option.
    In the new toolbar that pops up, look to the right.
    You need to use those selectors.

    See CSS specificity

  3. dm4n
    Posted 2 years ago #

    Thanks for your help. I was just reading the specificity page when your reply came through.

    I think the problem is a specificity issue- the selectors displayed in Inspect element are:

    a {
    color: #F30;
    text-decoration: none;

    And the parent's style.css is
    a {
    color: #F30;
    */ text-decoration:none; */

    Is the comment syntax incorrect? And doesn't the child's style.css override the parent's?

  4. dm4n
    Posted 2 years ago #

    All works now. thanks

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.