summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorven <vendethiel@hotmail.fr>2015-10-13 20:49:06 +0200
committerven <vendethiel@hotmail.fr>2015-10-13 20:49:06 +0200
commit3b09f01f00e0f613e1126a313f208d5e2fae3199 (patch)
tree008c5088ecb7ed80c99b80934a18cf69da6e2966
parent7f65b67a784c72e92774514b57457930ddc4e282 (diff)
parent45a5a9ed5b45f483a04c3b985be74cbcd38179fe (diff)
Merge pull request #1443 from kara-kincaid/master
[css/en] Added more pseudo-classes and pseudo-elements examples
-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 */