0

I try to find the good selector to separate my span and my p

Someone have an idea plz ?

<div class="item-content-text">
  <p>
     <span>Jacob Thompson</span> has joined your group Chess Club
  </p>
</div>

First Try

.item-content-text p:not(span) {
  
}

Second Try

.item-content-text p {

}

.item-content-text span {
 
}
Jordan
  • 11
  • 1

1 Answers1

0

.item-content-text p {
  color: rgba(0, 0, 0, 0.1);
}

.item-content-text span {
  color: rgba(0, 0, 0, 1);
}
<div class="item-content-text">
  <p>
    <span>Jacob Thompson</span> has joined your group Chess Club
  </p>
</div>
DreamTeK
  • 32,537
  • 27
  • 112
  • 171