From 5b434ad58ba8cfe4c3b9c87273daa9917cc7ae02 Mon Sep 17 00:00:00 2001 From: johannst Date: Tue, 14 Nov 2023 18:26:06 +0000 Subject: deploy: 11eebd33aa0ca9b87068b82b5d6f78537b95e4ba --- web/css.html | 265 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 265 insertions(+) create mode 100644 web/css.html (limited to 'web/css.html') diff --git a/web/css.html b/web/css.html new file mode 100644 index 0000000..70b743b --- /dev/null +++ b/web/css.html @@ -0,0 +1,265 @@ + + + + + + css - Notes + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+
+

css

+

selector

+

.moose element with class

+
<div class = "moose"></div>  // selected
+<div class = "bar"></div>    // NOT selected
+
+

.moose.bar element with multiple classes

+
<div class = "moose bar"></div>  // selected
+<div class = "bar"></div>        // NOT selected
+
+

.moose .bar descendant element with classes

+
<div class = "moose">
+    <div class = "bar"></div>  // selected
+</div>
+<div class = "bar"></div>      // NOT selected
+
+

p specific element

+
<p></p>      // selected
+<div></div>  // NOT selected
+
+

p.bar specific element with class

+
<p class = "bar"></p>  // selected
+<p class = "foo"></p>  // NOT selected
+
+

p,div any element

+
<p></p>      // selected
+<div></div>  // selected
+<a></a>      // NOT selected
+
+

div p descendant element of other element

+
<div><p></p></div>           // selected
+<div><ul><p></p></ul></div>  // NOT selected
+
+

div > o direct descendant element of other element

+
<div><p></p></div>           // selected
+<div><ul><p></p></ul></div>  // NOT selected
+
+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + +
+ + -- cgit v1.2.3