Reputation: 25
I am editing style.css of wordpress
and i want to display a hyperlink with white color i-e
<a class="viewall" href="/">View All</a>
.viewall {
color: #ffffff;
}
But its still showing hyperlink with black color, as it is inheriting from above css defined.. How to overcome this ?
Upvotes: 0
Views: 39
Reputation: 15797
You need to include style for "visited" as well.
a.viewall, a.viewall:visited {
color: #ffffff;
}
More Reading -- includes styling unvisited, visited, hover, and active links.
Upvotes: 2
Reputation: 3187
Try to add !important to your CSS style:
.viewall {
color: #ffffff !important;
}
Upvotes: 0