<?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[Limiting width of the &quot;Center&quot; modules and retaining centering]]></title><description><![CDATA[<p dir="auto">Hello Everyone -</p>
<p dir="auto">Looking for a bit of help on centering and limiting width of the center regions.  Surprisingly, I cannot find a topic on this forum where someone has had a similar issue.  All of my other issues up to this point have been easily found here on this forum!</p>
<p dir="auto">My issue is that I would like to limit the width of the center regions - specifically upper_third, middle_center, and lower_third.  An example module that I would like to use here is the default Newsfeed or MMM-History.</p>
<p dir="auto">I have tried to limit the max width using:</p>
<pre><code>maxWidth: "50%"
</code></pre>
<p dir="auto">or</p>
<pre><code>maxWidth : "325px"
</code></pre>
<p dir="auto">in the config.js file.  This limits the module’s width, but then offsets the module to the left.</p>
<p dir="auto">Since I want the width of these regions to be similar to the top_center or bottom_center regions, I figured that the answer would be somewhere in the main.css text.  I tried copying the following from the main.css into the custom.css file and changing the region names, but this did not work either.</p>
<pre><code>.region.top.center,
.region.bottom.center {
  left: 50%;
  -moz-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}
</code></pre>
<p dir="auto">Any thoughts, advice, or pointers in the right direction would be greatly appreciated!  Thanks!</p>
]]></description><link>https://forum.magicmirror.builders/topic/2665/limiting-width-of-the-center-modules-and-retaining-centering</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 13:57:39 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2665.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 May 2017 18:53:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Limiting width of the &quot;Center&quot; modules and retaining centering on Mon, 04 Mar 2019 15:04:17 GMT]]></title><description><![CDATA[<p dir="auto">Did anyone every find an answer to this? I have search the forums up and down but no good answer for how to restrict the center regions to set a max width.</p>
]]></description><link>https://forum.magicmirror.builders/post/53643</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/53643</guid><dc:creator><![CDATA[mlcampbe]]></dc:creator><pubDate>Mon, 04 Mar 2019 15:04:17 GMT</pubDate></item></channel></rss>