Skip to content

Instantly share code, notes, and snippets.

View attilavago's full-sized avatar
💭
Code is happening...

Attila Vago attilavago

💭
Code is happening...
View GitHub Profile
@rondevera
rondevera / css-to-select-range-of-children.html
Last active February 8, 2023 11:29
CSS selector for a range of children
<!DOCTYPE html>
<html>
<head>
<style>
/* How to select a range of children
* (Here, 3rd-7th children, inclusive):
*/
ul li:nth-child(n+3):nth-child(-n+7) {
outline: 1px solid #0f0;
}