From 2d70bccc5e6982d02647ad5681b3a1c3d8dd8cc6 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Thu, 31 Aug 2017 17:30:02 +0800 Subject: [PATCH] css: clarify pseudo-selector args --- css.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/css.md b/css.md index 1594a8a33..1bf8013af 100644 --- a/css.md +++ b/css.md @@ -59,22 +59,22 @@ weight: -1 | `:nth-child(3n+2)` | 2nd child in groups of 3 | | `:nth-child(-n+4)` | | | --- | --- | -| `:nth-last-child(···)` | | -| `:nth-of-type(···)` | | +| `:nth-last-child(2)` | | +| `:nth-of-type(2)` | | | --- | --- | ### Pseudo-class variations | Selector | | --- | -| `:first-of-type(···)` | -| `:last-of-type(···)` | -| `:nth-of-type(···)` | -| `:only-of-type(···)` | +| `:first-of-type` | +| `:last-of-type` | +| `:nth-of-type(2)` | +| `:only-of-type` | | --- | | `:first-child` | | `:last-child` | -| `:nth-child(···)` | +| `:nth-child(2)` | | `:only-child` | {: .-left-align}