css: clarify pseudo-selector args

This commit is contained in:
Rico Sta. Cruz 2017-08-31 17:30:02 +08:00
parent 6a3b10946a
commit 2d70bccc5e
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 7 additions and 7 deletions

14
css.md
View File

@ -59,22 +59,22 @@ weight: -1
| `:nth-child(3n+2)` | 2nd child in groups of 3 | | `:nth-child(3n+2)` | 2nd child in groups of 3 |
| `:nth-child(-n+4)` | | | `:nth-child(-n+4)` | |
| --- | --- | | --- | --- |
| `:nth-last-child(···)` | | | `:nth-last-child(2)` | |
| `:nth-of-type(···)` | | | `:nth-of-type(2)` | |
| --- | --- | | --- | --- |
### Pseudo-class variations ### Pseudo-class variations
| Selector | | Selector |
| --- | | --- |
| `:first-of-type(···)` | | `:first-of-type` |
| `:last-of-type(···)` | | `:last-of-type` |
| `:nth-of-type(···)` | | `:nth-of-type(2)` |
| `:only-of-type(···)` | | `:only-of-type` |
| --- | | --- |
| `:first-child` | | `:first-child` |
| `:last-child` | | `:last-child` |
| `:nth-child(···)` | | `:nth-child(2)` |
| `:only-child` | | `:only-child` |
{: .-left-align} {: .-left-align}