Skip to content

Instantly share code, notes, and snippets.

@xto3na
Created June 14, 2016 21:21
Show Gist options
  • Save xto3na/18af0d8d860fd123ae043cfa089272ed to your computer and use it in GitHub Desktop.
Save xto3na/18af0d8d860fd123ae043cfa089272ed to your computer and use it in GitHub Desktop.
Диапазон в CSS
ol li:nth-child(-n+14):nth-child(n+7) {
background: red;
}
@xto3na
Copy link
Author

xto3na commented Jun 14, 2016

В обратном порядке для совместимости с сафари.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment