summaryrefslogtreecommitdiffhomepage
path: root/css.html.markdown
diff options
context:
space:
mode:
authorKara Kincaid <kara_kincaid@epam.com>2015-10-10 08:20:03 -0400
committerKara Kincaid <kara_kincaid@epam.com>2015-10-10 08:20:03 -0400
commit622d4485ab9efd265be83d16abbe8cb12da7934c (patch)
treee95784c135f8bc235cb2e776ee4871249fa3f507 /css.html.markdown
parentd8a1c0cf6a224d7b6e68f06afd444ba24bd75ede (diff)
[css/en] Added more pseudo-classes and pseudo-elements examples
Diffstat (limited to 'css.html.markdown')
-rw-r--r--css.html.markdown13
1 files changed, 13 insertions, 0 deletions
diff --git a/css.html.markdown b/css.html.markdown
index 811767e6..4c459f7f 100644
--- a/css.html.markdown
+++ b/css.html.markdown
@@ -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