mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
[css/en] Added more pseudo-classes and pseudo-elements examples
This commit is contained in:
parent
d8a1c0cf6a
commit
622d4485ab
@ -119,6 +119,19 @@ selected:link {}
|
||||
/* or an input element which is focused */
|
||||
selected:focus {}
|
||||
|
||||
/* any element that is the first child of its parent */
|
||||
selector:first-child {}
|
||||
|
||||
/* any element that is the last child of its parent */
|
||||
selector:last-child {}
|
||||
|
||||
/* Just like pseudo classes, pseudo elements allow you to style certain parts of a document */
|
||||
|
||||
/* matches a virtual first child of the selected element */
|
||||
selector::before {}
|
||||
|
||||
/* matches a virtual last child of the selected element */
|
||||
selector::after {}
|
||||
|
||||
/* ####################
|
||||
## PROPERTIES
|
||||
|
Loading…
Reference in New Issue
Block a user