css: clarify pseudo-selector args
This commit is contained in:
parent
6a3b10946a
commit
2d70bccc5e
14
css.md
14
css.md
|
@ -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}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue