conspirisi
conspirisi

Reputation: 1087

Pseudo-classes after a class selector?

I've got a class

    .text2{
    font-size: 1.2em;
    color: #473f37;
    padding-bottom: 0.3em;
    }

I want text of links to appear white within this class, how do I do it?

<div class="text2">
  <a href="notice">Notices</a>
</div>

I tried the below and it not working

.text2 a:link{
    color: white;
}

Upvotes: 1

Views: 153

Answers (1)

Mark Bell
Mark Bell

Reputation: 29735

.text2 a { color: #ffffff; }

Upvotes: 4

Related Questions