- This topic has 7 replies, 3 voices, and was last updated 9 years, 5 months ago by
Tom.
-
AuthorPosts
-
August 14, 2016 at 8:06 am #218068
Meredith
Hi Tom,
I was wondering if there is a way to make the Read More… links a different color than the rest of the links in the content. I would like the Read More… links to be a certain red (#de2a1e) but in my posts, I also plan to have bullet lists of many links, and don’t want those all red.
So…question number 2. I would like to make the links in the Content underlined to make it clear that they are links, since they will not be the link color red. I found some CSS you gave in a different forum thread, and it did underline my widget links (which made me very happy, thank you!), but how do I get to where the CSS underlines the links in the post content?
Here’s the CSS I put in Simple CSS (sorry, I lost the forum thread link):
.widget a {
text-decoration: underline;
}If you need to view my site, it still has the same password protection I sent you–please let me know if I need to re-send it to you.
Thanks, Tom!
Meredith
August 14, 2016 at 8:35 am #218084Tom
Lead DeveloperLead DeveloperHi Meredith,
To underline, your CSS would be:
.widget a, .entry-content a { text-decoration: underline; }You can target the read more link with this:
a.read-moreHope this helps 🙂
August 16, 2016 at 3:45 am #218540Meredith
Thanks, Tom! I’ll try it…sorry for the delayed response, did not receive an email that you replied 🙂
August 16, 2016 at 9:39 am #218610Tom
Lead DeveloperLead DeveloperNo problem! 🙂
October 27, 2016 at 10:29 am #239415Markus
Hi Tom.
I tried to underline the visited links in the content only.
.entry-content a:visited { color: #123852; text-decoration: underline; }Funny, the color works, but no underline.
Any idea?
October 27, 2016 at 10:40 am #239428Tom
Lead DeveloperLead DeveloperLooks like it’s not possible to underline visited links: http://stackoverflow.com/questions/10471929/underlining-visited-links
October 29, 2016 at 9:31 am #239869Markus
Tom, thank you for the hint.
It is possible, by doing something like this:
/*underline*/ .entry-content a:visited { color: #black; border-bottom: 1px solid; border-bottom-color: #black; } .entry-content a:visited:hover { color: #red; } .entry-content a:link { border-bottom: 1px solid; border-bottom-color: white; }October 29, 2016 at 10:38 am #239893Tom
Lead DeveloperLead DeveloperYep, using border would be the workaround.
Glad you found a solution 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.