0

I have the following list:

<ul class="border">
  <li>test1</li>
  <li class="selected">test2</li>
  <li>test3</li>
</ul>

Is it possible to use sass for

.border {

  &.li:nth-child(3).selected {
      make background color of .border black
  }

}

Couldn't figure this out.

Temani Afif
  • 245,468
  • 26
  • 309
  • 415
Chen
  • 2,958
  • 5
  • 26
  • 45

0 Answers0