<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why doesn't CSS work in dashboards? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-CSS-work-in-dashboards/m-p/464015#M30503</link>
    <description>&lt;P&gt;I'm just discovering the same issue today an found in the release notes that Splunk broke CSS in 7.3.3. This also breaks in-line CSS which I have yet to figure out how to fix. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Uncategorized issues
Date filed  Issue number    Description
2019-12-03  SPL-180371, SPL-175319  CSS outside of &amp;lt;html&amp;gt; tag in SimpleXML doesn't work

Workaround:
Add &amp;lt;style&amp;gt; tag inside of &amp;lt;html&amp;gt; tag, with &amp;lt;p /&amp;gt; in front of the style tag:
&amp;lt;dashboard&amp;gt;
    &amp;lt;label&amp;gt;built-in css&amp;lt;/label&amp;gt;
    &amp;lt;row&amp;gt;    
        &amp;lt;panel&amp;gt;      
            &amp;lt;html&amp;gt;
                &amp;lt;p/&amp;gt;
                &amp;lt;style&amp;gt;#text {background: red;}&amp;lt;/style&amp;gt;        
                &amp;lt;div id="text"&amp;gt;text with red background&amp;lt;/div&amp;gt;
            &amp;lt;/html&amp;gt;    
        &amp;lt;/panel&amp;gt; 
    &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 13 Dec 2019 22:08:48 GMT</pubDate>
    <dc:creator>anthonymelita</dc:creator>
    <dc:date>2019-12-13T22:08:48Z</dc:date>
    <item>
      <title>Why doesn't CSS work in dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-CSS-work-in-dashboards/m-p/464012#M30500</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I use this example in my dashboard on local splunk this work:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8081i0830C44F0A578BAD/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
But if I use this example in Splunk on Google Cloud Platform, then css doesn't work.&lt;BR /&gt;
How to fix it?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 14:38:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-CSS-work-in-dashboards/m-p/464012#M30500</guid>
      <dc:creator>rendie</dc:creator>
      <dc:date>2019-12-10T14:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't CSS work in dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-CSS-work-in-dashboards/m-p/464013#M30501</link>
      <description>&lt;P&gt;@rendie &lt;BR /&gt;
Any error you seen in browser console? Can you please share more information like Splunk Version in local and cloud? &lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 05:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-CSS-work-in-dashboards/m-p/464013#M30501</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-12-11T05:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't CSS work in dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-CSS-work-in-dashboards/m-p/464014#M30502</link>
      <description>&lt;P&gt;@kamlesh_vaghela No error. Splunk Local is 7.3.1.1, Splunk on Cloud 7.3.3&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 08:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-CSS-work-in-dashboards/m-p/464014#M30502</guid>
      <dc:creator>rendie</dc:creator>
      <dc:date>2019-12-11T08:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't CSS work in dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-CSS-work-in-dashboards/m-p/464015#M30503</link>
      <description>&lt;P&gt;I'm just discovering the same issue today an found in the release notes that Splunk broke CSS in 7.3.3. This also breaks in-line CSS which I have yet to figure out how to fix. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Uncategorized issues
Date filed  Issue number    Description
2019-12-03  SPL-180371, SPL-175319  CSS outside of &amp;lt;html&amp;gt; tag in SimpleXML doesn't work

Workaround:
Add &amp;lt;style&amp;gt; tag inside of &amp;lt;html&amp;gt; tag, with &amp;lt;p /&amp;gt; in front of the style tag:
&amp;lt;dashboard&amp;gt;
    &amp;lt;label&amp;gt;built-in css&amp;lt;/label&amp;gt;
    &amp;lt;row&amp;gt;    
        &amp;lt;panel&amp;gt;      
            &amp;lt;html&amp;gt;
                &amp;lt;p/&amp;gt;
                &amp;lt;style&amp;gt;#text {background: red;}&amp;lt;/style&amp;gt;        
                &amp;lt;div id="text"&amp;gt;text with red background&amp;lt;/div&amp;gt;
            &amp;lt;/html&amp;gt;    
        &amp;lt;/panel&amp;gt; 
    &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Dec 2019 22:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-CSS-work-in-dashboards/m-p/464015#M30503</guid>
      <dc:creator>anthonymelita</dc:creator>
      <dc:date>2019-12-13T22:08:48Z</dc:date>
    </item>
  </channel>
</rss>

