<?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[How can I limit the width of a module that&#x27;s crossing over from left to right?]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I was looking for something to fill some space on my screen and happened upon the MMM Dad Jokes module.  I installed it fine and put it in Top Left under the clock.  The problem is the text doesn’t wrap so the module is crossing over into the right half of the screen and overlapping with my calendar module that’s over there.  How can I stop this from happening?</p>
<p dir="auto">I just want it to be the same size as the default Clock module with the same spacing.  Is there a way to do that easily?  I’m sure it can be done with some CSS, but I’m no good with CSS so any help would be great. ;)</p>
<p dir="auto">Thanks.</p>
<p dir="auto"><a href="https://i.imgur.com/tFy7Wjh.png" target="_blank" rel="noopener noreferrer nofollow ugc">https://i.imgur.com/tFy7Wjh.png</a></p>
]]></description><link>https://forum.magicmirror.builders/topic/19578/how-can-i-limit-the-width-of-a-module-that-s-crossing-over-from-left-to-right</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 12:17:09 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19578.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Mar 2025 18:18:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can I limit the width of a module that&#x27;s crossing over from left to right? on Sun, 30 Mar 2025 18:35:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rkorell" aria-label="Profile: rkorell">@<bdi>rkorell</bdi></a> i didnt introduce it, in html</p>
<p dir="auto"><img src="/assets/uploads/files/1743359737608-img_0895.png" alt="IMG_0895.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/125499</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/125499</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 30 Mar 2025 18:35:42 GMT</pubDate></item><item><title><![CDATA[Reply to How can I limit the width of a module that&#x27;s crossing over from left to right? on Sun, 30 Mar 2025 07:40:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Dear Sam,<br />
thanks for this long explanation.<br />
Understood.</p>
<p dir="auto">But you did it again :-) (no worries - it’s my own inability…).</p>
<p dir="auto">You’ve introduced - magic  again  :-) -  a .today identifier …<br />
This definitely makes sens but is not “visible” from a dummie perspective …<br />
Just to illustrate what I mean.<br />
If one KNOWS what happens (remember our long discussion in another thread where I was not able to pick the right “div” tag in the console) all is quite easy.<br />
If not - it’s really hard . That’s all what I try to show…<br />
And yes - the right way is and should be to get a full understanding how CSS works  - which is not true in my personal case…<br />
So I’m seeking around with “trial and error” - which fails often…</p>
<p dir="auto">Thanks for your engagement and effort!</p>
<p dir="auto">Ralf</p>
]]></description><link>https://forum.magicmirror.builders/post/125463</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/125463</guid><dc:creator><![CDATA[rkorell]]></dc:creator><pubDate>Sun, 30 Mar 2025 07:40:36 GMT</pubDate></item><item><title><![CDATA[Reply to How can I limit the width of a module that&#x27;s crossing over from left to right? on Sun, 30 Mar 2025 04:28:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rkorell" aria-label="Profile: rkorell">@<bdi>rkorell</bdi></a> will explain later<br />
I use this set of pages to help me understand the css selector clause…<br />
it used to be one page, now separated into like attributes…<br />
<a href="https://www.w3schools.com/cssref/css_selectors.php" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.w3schools.com/cssref/css_selectors.php</a></p>
<p dir="auto">the html  from my example link</p>
<pre><code class="language-html">&lt;div class="cell today thisMonth thisYear year_2025 month_3 date_29 weekday_6 weekend weekend_1" data-date="1743231600000" data-events="1" data-has-events="true" id="1743231600000_1743306263377" data-popoverble="true"&gt;
     &lt;div class="cellHeader"&gt;
         &lt;div class="cw"&gt;13&lt;/div&gt;
         &lt;div class="cellDate"&gt;
            &lt;span class="dateParts month seq_0"&gt;Mar&lt;/span&gt;
            &lt;span class="dateParts literal seq_1"&gt; &lt;/span&gt;
            &lt;span class="dateParts day seq_2"&gt;29&lt;/span&gt;
         &lt;/div&gt;
       &lt;/div&gt;
       &lt;div class="cellBody"&gt;&lt;/div&gt;
       &lt;div class="cellFooter"&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>
<p dir="auto">now, we want to pick today, and the thing that wraps the date itself.</p>
<p dir="auto">css is really pretty straight forward</p>
<p dir="auto">left to right match the elements from the selector<br />
. means class=<br />
# means id=<br />
otherwise its an element name (div, table, p, span …)</p>
<pre><code>so. we want JUST content in the `CX3` class content
   and then we want the things under `today`
</code></pre>
<p dir="auto">we don’t HAVE to specify the element as long as there are not different elements with the same class… (div and span)</p>
<p dir="auto">so<br />
<code>.CX3 .today</code></p>
<p dir="auto">the space between means ‘also’,  with no space it means ‘AND’ (same element has BOTH specified)</p>
<p dir="auto">we REALLY want the cellDate class elements, can we get there from <code>today</code>?<br />
yes,<br />
the <code>cellHeader</code> element doesn’t matter, cause there is no OTHER location for  <code>cellDate</code>, <code>except</code> under cellHeader…</p>
<p dir="auto">so if we combine those</p>
<p dir="auto"><code>.CX3 .today .cellDate</code>, together they define a specific  element family we can ‘select’</p>
<p dir="auto">we could add <code>div.today</code> (a div AND .today specified) , but it wouldn’t be more specific.  In a calendar month there will only be ONE element with <code>today</code> class AND it only has ONE child element with <code>cellDate</code>, they are not the SAME element, so we need spaces between the selector elements</p>
<p dir="auto">css will ALWAYS pick ALL elements that match, across the entire document(page)</p>
<p dir="auto">so if we said <code>.CX3 .cellDate</code> we would adjust ALL of them, oops. NOT JUST for the one for <code>today</code></p>
<p dir="auto">we could use <code>.cellDate</code><br />
BUT if another module used that same class, then we would fiddle with their css… oops</p>
]]></description><link>https://forum.magicmirror.builders/post/125438</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/125438</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 30 Mar 2025 04:28:58 GMT</pubDate></item><item><title><![CDATA[Reply to How can I limit the width of a module that&#x27;s crossing over from left to right? on Sat, 29 Mar 2025 21:17:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a></p>
<blockquote>
<p dir="auto">then you aren’t using it correctly…</p>
</blockquote>
<p dir="auto">yes :-)<br />
For sure.<br />
But in your given (referenced) example (Thanks for this - highly appreciated!) is happening exacty this “magic” which I cannot get through …</p>
<p dir="auto">Example:</p>
<p dir="auto">your “magic” reduces</p>
<pre><code>.CX3 div .cell.today.thisMonth.thisYear.year_2025.month_3.date_25.weekday_2 div.cellHeader div.cellDate {
 height: 1em;
text-align: left;
}
</code></pre>
<p dir="auto">to much simpler</p>
<pre><code>.CX3 div .cell.today div.cellDate {
 height: 1em;
}
</code></pre>
<p dir="auto">The reason behind is pretty clear but from my (naive and may incorrect) “understanding” MY approach would be</p>
<pre><code>.CX3 div .cell.today div.cellHeader div.cellDate {
 height: 1em;
}
</code></pre>
<p dir="auto">And I’m sure this is wrong and won’t work.<br />
But why “div.cellHeader” is NOT neccesary regardless it’s presence in the copied locator - is kind of “contra-intuitive” and hard to understand …</p>
<p dir="auto">And I guess this exactly are these issues why I’m struggling…</p>
<p dir="auto">Warm regards,<br />
Ralf</p>
]]></description><link>https://forum.magicmirror.builders/post/125435</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/125435</guid><dc:creator><![CDATA[rkorell]]></dc:creator><pubDate>Sat, 29 Mar 2025 21:17:06 GMT</pubDate></item><item><title><![CDATA[Reply to How can I limit the width of a module that&#x27;s crossing over from left to right? on Sat, 29 Mar 2025 14:50:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rkorell" aria-label="Profile: rkorell">@<bdi>rkorell</bdi></a> said in <a href="/post/125415">How can I limit the width of a module that's crossing over from left to right?</a>:</p>
<blockquote>
<p dir="auto">even with trials to identify CSS-locator with debug-console (which fails)…</p>
</blockquote>
<p dir="auto">then you aren’t using it correctly…</p>
<p dir="auto">if you looked at this<br />
<a href="https://forum.magicmirror.builders/post/125328">https://forum.magicmirror.builders/post/125328</a></p>
<p dir="auto">the dev console SHOWS you the selector AND you can copy/paste the html to get the terms in custom.css</p>
]]></description><link>https://forum.magicmirror.builders/post/125416</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/125416</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 29 Mar 2025 14:50:13 GMT</pubDate></item><item><title><![CDATA[Reply to How can I limit the width of a module that&#x27;s crossing over from left to right? on Sat, 29 Mar 2025 14:41:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> yes, for sure.<br />
I’ve experimented a lot - even with trials to identify CSS-locator with debug-console (which fails)…<br />
Finally this simple statement in module-documentes CSS-locator works fine…<br />
:-)<br />
Lucky punch …</p>
<p dir="auto">Ralf</p>
]]></description><link>https://forum.magicmirror.builders/post/125415</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/125415</guid><dc:creator><![CDATA[rkorell]]></dc:creator><pubDate>Sat, 29 Mar 2025 14:41:50 GMT</pubDate></item><item><title><![CDATA[Reply to How can I limit the width of a module that&#x27;s crossing over from left to right? on Sat, 29 Mar 2025 14:26:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rkorell" aria-label="Profile: rkorell">@<bdi>rkorell</bdi></a> i don’t think there is a single term that works with 100% of content</p>
]]></description><link>https://forum.magicmirror.builders/post/125414</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/125414</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 29 Mar 2025 14:26:43 GMT</pubDate></item><item><title><![CDATA[Reply to How can I limit the width of a module that&#x27;s crossing over from left to right? on Sat, 29 Mar 2025 14:22:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bkeyport" aria-label="Profile: BKeyport">@<bdi>BKeyport</bdi></a> , <a class="plugin-mentions-user plugin-mentions-a" href="/user/kelemvor" aria-label="Profile: Kelemvor">@<bdi>Kelemvor</bdi></a><br />
Thanks!</p>
<pre><code>max-width: 350px;
</code></pre>
<p dir="auto">worked for me.</p>
<ul>
<li>I had a similar “problem” with module <a href="https://github.com/yourdawi/MMM-UselessFacts" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-UselessFacts</a></li>
</ul>
<p dir="auto">word-wrap doesn’t do the trick …</p>
<p dir="auto">Regards,<br />
Ralf</p>
]]></description><link>https://forum.magicmirror.builders/post/125413</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/125413</guid><dc:creator><![CDATA[rkorell]]></dc:creator><pubDate>Sat, 29 Mar 2025 14:22:03 GMT</pubDate></item><item><title><![CDATA[Reply to How can I limit the width of a module that&#x27;s crossing over from left to right? on Fri, 28 Mar 2025 05:38:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kelemvor" aria-label="Profile: Kelemvor">@<bdi>Kelemvor</bdi></a> the answers will lie within the following two CSS items. Using Sam’s link, feel free to play with the CSS then add whatever works to custom.css</p>
<p dir="auto"><a href="https://www.w3schools.com/cssref/css3_pr_word-wrap.php" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.w3schools.com/cssref/css3_pr_word-wrap.php</a><br />
<a href="https://www.w3schools.com/cssref/pr_dim_max-width.php" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.w3schools.com/cssref/pr_dim_max-width.php</a></p>
]]></description><link>https://forum.magicmirror.builders/post/125365</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/125365</guid><dc:creator><![CDATA[BKeyport]]></dc:creator><pubDate>Fri, 28 Mar 2025 05:38:38 GMT</pubDate></item><item><title><![CDATA[Reply to How can I limit the width of a module that&#x27;s crossing over from left to right? on Thu, 27 Mar 2025 18:28:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kelemvor" aria-label="Profile: Kelemvor">@<bdi>Kelemvor</bdi></a> i do not know the exact css</p>
<p dir="auto">but see the second link in my signature below on using the developer window elements tab</p>
<p dir="auto">and then</p>
<p dir="auto">google search<br />
how to wrap text with css</p>
<p dir="auto">it will give you the css terms to use</p>
<p dir="auto">you can also see this post about using the developer window elements window. a specific example and steps<br />
<a href="https://forum.magicmirror.builders/post/125328">https://forum.magicmirror.builders/post/125328</a></p>
]]></description><link>https://forum.magicmirror.builders/post/125363</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/125363</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 27 Mar 2025 18:28:34 GMT</pubDate></item></channel></rss>