I have links for the main class set to orange in my CSS, but, I want the read more link as white, and nothing I do is working.
OK, so here is the page setup:
<div class="entry_post">
<a href="http://localhost/" class="more-link">
Read More
</a>
</div>
My CSS:
.entry_post a {
color:#FF8800;
}
.entry_post .more-link a{
color:#ffffff;
}
.more-link {
color:#ffffff;
}
I’m sure I am doing something wrong, but for the life of me i have no idea what’s wrong.
You need to combine the tag and class selector (the tag selector is optional):
.entry_post .more-link adoes not work because it means anain a.more-linkin a.entry_post. The problem with the simple.more-linkis that.entry_post ais more specific, so it will override it.