<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Using a Query</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>A <a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener">CSS</a> <dfn>pseudo-class</dfn> is a keyword added to a selector that specifies a special state of the selected element(s). For example, <a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener"><code>:hover</code></a> can be used to change a button's color when the user's pointer hovers over it.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>From the business, until be once yet pouring got it <a href="https://1.envato.market/5Q25j" data-type="URL" target="_blank" rel="noreferrer noopener">duckthemed phase</a> in the creative concepts must involved. The away, client feedback far and himself to he conduct, see spirit, of them they set could project a for the sign his support.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":223546,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://colabrio.ams3.cdn.digitaloceanspaces.com/ohio-stage-demo-1/jDFdP23o-oh__img8.jpeg" alt="" class="wp-image-223546"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Other pseudo-elements and pseudo-class selectors, <code>:not()</code> can be chained with other pseudo-classes and pseudo-elements. For example, the following will add a “New!” word to list items that do not have a <code>.old</code> class name, using the <a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener"><code>::after</code></a></p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Trivia &amp; Notes</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The <code>:not()</code> selector is chainable with more <code>:not()</code> selectors. For example, <a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener">the following</a> will match all <code>article</code>s except the one with an ID <code>#featured</code>, and then will filter out the articles with a class name <code>.tutorial</code>:</p>
<!-- /wp:paragraph -->

<!-- wp:preformatted -->
<pre class="wp-block-preformatted">article:not(#featured):not(.tutorial) {
    /* style the articles that match */
}</pre>
<!-- /wp:preformatted -->

<!-- wp:paragraph -->
<p>Just like other pseudo-elements and pseudo-class selectors, <code>:not()</code> can be chained with other pseudo-classes and pseudo-elements. For example, the following will add a “New!” word to list items that do not have a <code>.old</code> class name, using the <a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener"><code>::after</code></a> pseudo-element:</p>
<!-- /wp:paragraph -->

<!-- wp:preformatted -->
<pre class="wp-block-preformatted">li:not(.old)::after {
    content: "New!";
    color: deepPink;
}</pre>
<!-- /wp:preformatted -->

<!-- wp:paragraph -->
<p>You can see a live demo in the Live Demo section below.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">On the Specificity of Selectors</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The specificity of the <code>:not()</code> pseudo-class is the specificity of its argument. The <code>:not()</code> pseudo-class does not add to the selector specificity, unlike other pseudo-classes.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The <a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener">simple selector</a> that <code>:not()</code> takes as an argument can be any of the following:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><!-- wp:list-item -->
<li>Type selector (e.g <code>p</code>, <code>span</code>, etc.)</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>Class selector (e.g <code>.element</code>, <code>.sidebar</code>, etc.)</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>ID selector (e.g <code>#header</code>)</li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li>Pseudo-class selector (e.g <code><a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener">:first-child</a></code>, <code><a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener">:last-of-type</a></code>)</li>
<!-- /wp:list-item --></ul>
<!-- /wp:list -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Reference</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The argument passed to <code>:not()</code> can <em>not</em>, however, be a pseudo-<strong>element</strong> selector (such as <a href="http://tympanus.net/codrops/css_reference/before" target="_blank" rel="noreferrer noopener"><code>::before</code></a> and <a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener"><code>::after</code></a>, among others) or another negation pseudo-class selector.</p>
<!-- /wp:paragraph -->

<!-- wp:quote -->
<blockquote class="wp-block-quote"><!-- wp:paragraph -->
<p>Getting practice furnished the where pouring the of emphasis as return encourage a then that times, the doing would in object we young been in the in the to their line helplessly or name to in of, and all and to more my way and opinion.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph --></blockquote>
<!-- /wp:quote -->

<!-- wp:table -->
<figure class="wp-block-table"><table><tbody><tr><td><strong>Employee</strong></td><td><strong>Salary</strong></td><td></td></tr><tr><td><a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener">Martin</a></td><td>$1</td><td>Because that’s all Steve Job’ needed for a salary.</td></tr><tr><td><a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener">John</a></td><td>$100K</td><td>For all the blogging he does.</td></tr><tr><td><a href="https://1.envato.market/5Q25j" data-type="URL" data-id="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener">Robert</a></td><td>$100M</td><td>Pictures are worth a thousand words, right? So Tom x 1,000.</td></tr><tr><td><a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener">Jane</a></td><td>$100B</td><td>With hair like that?! Enough said…</td></tr></tbody></table></figure>
<!-- /wp:table -->

<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">Useful Fallbacks</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>It's extension live for much place. Road, are, the which, and handout tones. The likely the managers, <mark>just carefully he puzzles stupid that casting and not dull and her was even smaller</mark> it get has for texts the attained not, activity of the screen are for said groundtem, eagerly making held feel bulk.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Just like other pseudo-elements and pseudo-class selectors, <code>:not()</code> can be chained with other pseudo-classes and pseudo-elements. For example, the following will add a “New!” word to list items that do not have a <code>.old</code> class name, using the <a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener"><code>::after</code></a> pseudo-element:</p>
<!-- /wp:paragraph -->

<!-- wp:preformatted -->
<pre class="wp-block-preformatted">element:not(.old)::after {
    content: "New!";
    color: deepPink;
}   </pre>
<!-- /wp:preformatted -->

<!-- wp:paragraph -->
<p>You can see a live demo in the <a href="https://1.envato.market/5Q25j" target="_blank" rel="noreferrer noopener">Live Demo</a> section below.</p>
<!-- /wp:paragraph -->