Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Can't change font color

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #164528
    BradyPartridge
    Participant

    I’m having a hard time trying to change the font color of the “Read More” under the Count Meinrard heading on the home page of my blog. This is the code I’m using:

    <span style="font-family:Constantia; font-size:19px; color: #2089AF;"><a  href="http://thecontentbloke.com/shopping-mall-misadventure/">Read More...</a></span>
    

    I added the “important” attribute to the code, but that did nothing. The font color still remains a different shade of blue than the other instances of “Read More” on the home page.

    What am I doing wrong?

    Many thanks in advance for your help.

    #164540
    Paulie_D
    Member

    You really shouldn’t be using inline styles in your HTML.

    Change this

    <span style="font-family:Constantia; font-size:19px; color: #2089AF;"><a href="http://thecontentbloke.com/shopping-mall-misadventure/">Read More...</a></span>
    

    to this

    <span><a href="http://thecontentbloke.com/shopping-mall-misadventure/">Read More...</a></span>
    

    and add an appropriate class.

    You have this

    .feature_contentbox a.readmore {
        color:#2089AF;
        font-size:19px;
        line-height:21px;
        font-family: "Constantia";
        margin-top:15px;
        font-weight:normal;
        display:block;
    }
    
    .feature_contentbox a.readmore:hover {
        opacity:0.5;
    }
    

    I suggest you expand it to include .feature_infobox links

    #164605
    BradyPartridge
    Participant

    Thanks very much for your response.

    I’ve applied the new span code you recommended but aren’t sure how to expand the other code to include the infobox.

    #164625
    Paulie_D
    Member

    If I recall correctly all you would need to so is

    .feature_contentbox a.readmore,
    .feature_infobox a.readmore  {
        color:#2089AF;
        font-size:19px;
        line-height:21px;
        font-family: "Constantia";
        margin-top:15px;
        font-weight:normal;
        display:block;
    }
    
    .feature_contentbox a.readmore:hover,
    .feature_infobox a.readmore:hover  {
        opacity:0.5;
    }
    
    #164697
    BradyPartridge
    Participant

    I made those code mods, but alas they didn’t have any effect.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.