<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Generic CSS question when target is several layers down]]></title><description><![CDATA[<p dir="auto">How does one address what appears to be an attribute amenable to custom CSS tweaking when the item is several layers down as shown in attached picture?  I figure it has to do with the crude example I sketched out below but not sure what is driver for when you insert spaces, or don’t.<br />
I see CSS that is<br />
<code>.X.Y.Z   {</code><br />
<code>padding-left: 20px;</code><br />
<code>}</code><br />
While other times it may be</p>
<p dir="auto"><code>.X.Y   .Z {</code><br />
<code>padding-left: 20px;</code><br />
<code>}</code><br />
<img src="/assets/uploads/files/1630178891581-generic-css.jpg" alt="Generic CSS.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/topic/15428/generic-css-question-when-target-is-several-layers-down</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 17:12:40 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15428.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Aug 2021 19:29:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Generic CSS question when target is several layers down on Sun, 29 Aug 2021 15:49:59 GMT]]></title><description><![CDATA[<p dir="auto">@hango said in <a href="/post/94046">Generic CSS question when target is several layers down</a>:</p>
<blockquote>
<p dir="auto">if he put something between clock and calendar or change position the ID is changing</p>
</blockquote>
<p dir="auto">good point… I hadn’t thought of classes for that kind of purpose…</p>
]]></description><link>https://forum.magicmirror.builders/post/94047</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94047</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 29 Aug 2021 15:49:59 GMT</pubDate></item><item><title><![CDATA[Reply to Generic CSS question when target is several layers down on Sun, 29 Aug 2021 12:02:01 GMT]]></title><description><![CDATA[<p dir="auto">@hango because he has multiple instances of calendar running, he needs to use the ID</p>
<p dir="auto">#module_1_calendar<br />
instead of the class<br />
,calendar</p>
]]></description><link>https://forum.magicmirror.builders/post/94013</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/94013</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 29 Aug 2021 12:02:01 GMT</pubDate></item><item><title><![CDATA[Reply to Generic CSS question when target is several layers down on Sat, 28 Aug 2021 20:08:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ankonaskiff17" aria-label="Profile: ankonaskiff17">@<bdi>ankonaskiff17</bdi></a> if u select an element in the center panel  then it’s lieneage is shown on the bottom of that pane</p>
]]></description><link>https://forum.magicmirror.builders/post/93992</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93992</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 28 Aug 2021 20:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to Generic CSS question when target is several layers down on Sat, 28 Aug 2021 20:06:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ankonaskiff17" aria-label="Profile: ankonaskiff17">@<bdi>ankonaskiff17</bdi></a> on the spaces question, it’s like immediate child with no space</p>
]]></description><link>https://forum.magicmirror.builders/post/93991</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93991</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 28 Aug 2021 20:06:30 GMT</pubDate></item><item><title><![CDATA[Reply to Generic CSS question when target is several layers down on Sat, 28 Aug 2021 19:59:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ankonaskiff17" aria-label="Profile: ankonaskiff17">@<bdi>ankonaskiff17</bdi></a> Not an expert in CSS at all but in the first example you gave you are targeting a single element in the chain (.X.Y.Z single element Z in the chain of X/Y) whereas in the second example you are targeting two different elements (.X.Y and .Z).</p>
]]></description><link>https://forum.magicmirror.builders/post/93990</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93990</guid><dc:creator><![CDATA[mumblebaj]]></dc:creator><pubDate>Sat, 28 Aug 2021 19:59:50 GMT</pubDate></item><item><title><![CDATA[Reply to Generic CSS question when target is several layers down on Sat, 28 Aug 2021 19:55:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ankonaskiff17" aria-label="Profile: ankonaskiff17">@<bdi>ankonaskiff17</bdi></a> you have to chain together different selectors to target the element you want</p>
<p dir="auto">see<br />
<a href="https://www.w3schools.com/cssref/css_selectors.asp" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.w3schools.com/cssref/css_selectors.asp</a></p>
<h1>is id, module_1_calendar</h1>
<p dir="auto">. is class , .module, .small<br />
neither is element name , aka div, img, li</p>
<p dir="auto">and there are operators that give u parent or child or direct child</p>
<p dir="auto">u currently cannot target an element with a specific value</p>
<pre><code class="language-html">&lt;li&gt;2&lt;/li&gt;
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/93988</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93988</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 28 Aug 2021 19:55:27 GMT</pubDate></item></channel></rss>