HTML CSS

마지막 자식요소 css 선택자 nth-last-of-type(1)

짱닭 2021. 10. 20. 15:07
반응형
ul li {
    display: flex;
    justify-content: space-between;

    padding: 1rem;
    border: 1px solid #f2f2f2;

    &:nth-last-of-type(1) {
      span:nth-last-of-type(1) {
        color: $color-primary-light;
      }
    }
  }
반응형