0
Q:

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>
0
.outer a:not(:last-of-type) {
  color: red;
}
0

New to Communities?

Join the community