Skip to main content
edited tags
Link
BoltClock
  • 716.4k
  • 164
  • 1.4k
  • 1.4k
edited tags; edited title
Link
BoltClock
  • 716.4k
  • 164
  • 1.4k
  • 1.4k

Pseudo selectors-classes after a class selector?

spelling
Source Link
conspirisi
  • 1.1k
  • 3
  • 11
  • 19

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;
}

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?

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;
}
Source Link
conspirisi
  • 1.1k
  • 3
  • 11
  • 19
Loading