Joie Joie - 3 months ago 6x
CSS Question

Set link of class to different color (CSS/HTML)

so I have two sets of links in an HTML document. Most of them (any normal link showing up on the site) have been set to my desired color, but I want four of them to have a different color and hover color than the others.

I set

<a class="other" href="/">different link</a>
on those links in my HTML and

a.other { color:fff; }

a.other:hover { color: #8741ff; }

in my CSS, but the links of
are still showing up like all the rest.

Is there a way to rectify this?

Thanks. :)


You left out the hash sign (#) before fff. :)