summaryrefslogtreecommitdiffhomepage
path: root/css.html.markdown
diff options
context:
space:
mode:
authorevuez <helloevuez@gmail.com>2015-10-16 10:42:41 +0200
committerevuez <helloevuez@gmail.com>2015-10-16 10:42:41 +0200
commit85adff2c39e6eae77a915638961f2144ef18b5c9 (patch)
treead87847bd5cca361b2e4582a361c4d4d70948aec /css.html.markdown
parent375f0c18ae9b8d8732c480d0647becf1e82adf3e (diff)
parent25e49b8cf10d3879431eae6ffe8a8e5f88843b8d (diff)
Merge 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'css.html.markdown')
-rw-r--r--css.html.markdown14
1 files changed, 14 insertions, 0 deletions
diff --git a/css.html.markdown b/css.html.markdown
index e3ca94d9..d8f30ca3 100644
--- a/css.html.markdown
+++ b/css.html.markdown
@@ -106,6 +106,20 @@ selected:link { }
/* or an element in focus */
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 {}
+
/* At appropriate places, an asterisk may be used as a wildcard to select every
element */
* { } /* all elements */