Selecting Ranges of Elements with CSS

ol li:nth-child(n+7):nth-child(-n+14) {
  background: lightpink;
}

Source