Answers for "styling links within a class except the last one"

0

styling links within a class except the last one

.outer a:not(:last-of-type) {
  color: red;
}
Posted by: Guest on August-17-2020
0

styling links within a class except the last one

<div class="outer">
  <a href="#">First</a>
  <a href="#">Second</a>
  <div>
    <a href="#">Third</a>
  </div>
  <a href="#">Fourth</a>
  <a href="#">Fifth</a>
</div>
Posted by: Guest on August-17-2020

Code answers related to "styling links within a class except the last one"

Browse Popular Code Answers by Language