- This topic is empty.
-
AuthorPosts
-
March 2, 2014 at 9:43 pm #164528
BradyPartridge
ParticipantI’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.
March 3, 2014 at 4:37 am #164540Paulie_D
MemberYou 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
linksMarch 3, 2014 at 6:14 pm #164605BradyPartridge
ParticipantThanks 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.
March 4, 2014 at 2:56 am #164625Paulie_D
MemberIf 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; }
March 4, 2014 at 6:19 pm #164697BradyPartridge
ParticipantI made those code mods, but alas they didn’t have any effect.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.