diff options
Diffstat (limited to 'web/css.html')
-rw-r--r-- | web/css.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/web/css.html b/web/css.html index 6f63a1f..d7e2a84 100644 --- a/web/css.html +++ b/web/css.html @@ -179,26 +179,26 @@ <h1 id="css"><a class="header" href="#css">css</a></h1> <h2 id="selector"><a class="header" href="#selector">selector</a></h2> <p><code>.moose</code> element with class</p> -<pre><code class="language-html"><div class = "moose"></div> // selected -<div class = "bar"></div> // NOT selected +<pre><code class="language-html"><div class = "moose"></div> // selected +<div class = "bar"></div> // NOT selected </code></pre> <p><code>.moose.bar</code> element with multiple classes</p> -<pre><code class="language-html"><div class = "moose bar"></div> // selected -<div class = "bar"></div> // NOT selected +<pre><code class="language-html"><div class = "moose bar"></div> // selected +<div class = "bar"></div> // NOT selected </code></pre> <p><code>.moose .bar</code> descendant element with classes</p> -<pre><code class="language-html"><div class = "moose"> - <div class = "bar"></div> // selected +<pre><code class="language-html"><div class = "moose"> + <div class = "bar"></div> // selected </div> -<div class = "bar"></div> // NOT selected +<div class = "bar"></div> // NOT selected </code></pre> <p><code>p</code> specific element</p> <pre><code class="language-html"><p></p> // selected <div></div> // NOT selected </code></pre> <p><code>p.bar</code> specific element with class</p> -<pre><code class="language-html"><p class = "bar"></p> // selected -<p class = "foo"></p> // NOT selected +<pre><code class="language-html"><p class = "bar"></p> // selected +<p class = "foo"></p> // NOT selected </code></pre> <p><code>p,div</code> any element</p> <pre><code class="language-html"><p></p> // selected |