<?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[Fit background fade to text]]></title><description><![CDATA[<p dir="auto">Can anyone help me<br />
I have a fade, on my compliments background. The text is black.<br />
The problem is, that the fade is fully across the screen, from side to side. I would like it to fit the length of the compliment text only.<br />
This is my custom css contents<br />
body {<br />
color: #000;<br />
}</p>
<p dir="auto">.dimmed {<br />
color: #000;<br />
}</p>
<p dir="auto">.normal {<br />
color: #000;<br />
}</p>
<p dir="auto">.bright {<br />
color: #000;<br />
}</p>
<p dir="auto">.module.clock {<br />
background-color:rgba(255,255,255,0.6);<br />
border-radius:8px;<br />
padding:8px;<br />
}</p>
<p dir="auto">.module.compliments {<br />
background-color:rgba(255,255,255,0.6);<br />
border-radius:8px;<br />
padding:8px;<br />
}</p>
<p dir="auto">.module.calendar {<br />
background-color:rgba(255,255,255,0.6);<br />
border-radius:8px;<br />
padding:8px;<br />
}</p>
<p dir="auto">.module.newsfeed {<br />
background-color:rgba(255,255,255,0.6);<br />
border-radius:8px;<br />
padding:8px;<br />
}<br />
Also, how do I mark a previous post as solved ?</p>
]]></description><link>https://forum.magicmirror.builders/topic/12609/fit-background-fade-to-text</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 05:29:12 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/12609.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Apr 2020 07:50:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fit background fade to text on Fri, 17 Apr 2020 10:01:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lavolp3" aria-label="Profile: lavolp3">@<bdi>lavolp3</bdi></a> Thanks for that.<br />
Out of curiosity I will give it a try</p>
<p dir="auto">I have just this minute managed to get what wanted by positioning the module newsfeed by changing it to center instead of bottom bar<br />
module: “newsfeed”,<br />
//position: “bottom_bar”,<br />
position: “bottom_center”,</p>
<p dir="auto">and the complimentets I changed to center. Although this is top center, I am happy with that</p>
]]></description><link>https://forum.magicmirror.builders/post/72930</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/72930</guid><dc:creator><![CDATA[TamP]]></dc:creator><pubDate>Fri, 17 Apr 2020 10:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to Fit background fade to text on Fri, 17 Apr 2020 08:52:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tamp" aria-label="Profile: TamP">@<bdi>TamP</bdi></a> said in <a href="/post/72924">Fit background fade to text</a>:</p>
<blockquote>
<p dir="auto">.module.compliments {<br />
background-color:rgba(255,255,255,0.6);<br />
border-radius:8px;<br />
padding:8px;<br />
}</p>
</blockquote>
<p dir="auto">Without having checked for myself, try this:</p>
<pre><code>.module.compliments div{
  background-color:rgba(255,255,255,0.6);
  border-radius:8px;
  padding:8px;
}
</code></pre>
<p dir="auto">or</p>
<pre><code>.module.compliments span{
  background-color:rgba(255,255,255,0.6);
  border-radius:8px;
  padding:8px;
}
</code></pre>
<p dir="auto">You need to reference not the module itself but the text container the is being created by the getdom method inside the module.<br />
There is a wrapper div  and a span in this div.</p>
]]></description><link>https://forum.magicmirror.builders/post/72928</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/72928</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Fri, 17 Apr 2020 08:52:36 GMT</pubDate></item></channel></rss>