selecting last child css

38

li:not(:last-child)
p:last-child {
  font-size: 0.75em;
}
<menu>
  <li><a href="/member/profile">Profile</a></li>
  <li><a href="/member/options">Options</a></li>
  <li><a href="/member/logout">Logout</a></li>
</menu>

Comments

Submit
0 Comments