<?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: CSS nth-child not working in dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-nth-child-not-working-in-dashboard/m-p/555542#M38619</link>
    <description>&lt;P&gt;Where are you defining the css? If it is in a hidden panel in the SimpleXML, this works differently in 7.3.3. You need an empty element in the html&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$stayhidden$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div/&amp;gt;
        &amp;lt;style&amp;gt;
          #level_row_header .dashboard-cell:nth-child(1) {
            width:22% !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 12 Jun 2021 09:53:50 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-06-12T09:53:50Z</dc:date>
    <item>
      <title>CSS nth-child not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-nth-child-not-working-in-dashboard/m-p/555537#M38617</link>
      <description>&lt;P&gt;I have three versions of Splunk (7.3.1.1, 7.3.3 and 8.1.4)&lt;/P&gt;&lt;P&gt;The following CSS in a dashboard works in two of them, 7.3.1.1 and 8.1.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#level_row_header .dashboard-cell:nth-child(1) {
  width:22% !important;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect it is that the 7.3.3 version has been upgraded from a 7.0.2 version in the past. I am unable to work out what it is that is preventing this from working.&lt;/P&gt;&lt;P&gt;In the 8.1.4 version in the browser inspect window I see this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bowesmana_0-1623470356511.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14605iB5546D5A65127275/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bowesmana_0-1623470356511.png" alt="bowesmana_0-1623470356511.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but in the 7.3.3 I have this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bowesmana_1-1623470430675.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14606iDE7C945A5137B153/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bowesmana_1-1623470430675.png" alt="bowesmana_1-1623470430675.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so for whatever reason, it's not picking up the cascading class definition.&lt;/P&gt;&lt;P&gt;It's the same dashboard, same css, same app&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 04:02:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-nth-child-not-working-in-dashboard/m-p/555537#M38617</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-06-12T04:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: CSS nth-child not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-nth-child-not-working-in-dashboard/m-p/555542#M38619</link>
      <description>&lt;P&gt;Where are you defining the css? If it is in a hidden panel in the SimpleXML, this works differently in 7.3.3. You need an empty element in the html&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$stayhidden$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div/&amp;gt;
        &amp;lt;style&amp;gt;
          #level_row_header .dashboard-cell:nth-child(1) {
            width:22% !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 12 Jun 2021 09:53:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-nth-child-not-working-in-dashboard/m-p/555542#M38619</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-12T09:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: CSS nth-child not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-nth-child-not-working-in-dashboard/m-p/555603#M38627</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;- I ended up upgrading the box to 7.3.9 and it worked after that, but good to know. Yes, it is in CSS in a hidden panel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 22:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-nth-child-not-working-in-dashboard/m-p/555603#M38627</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-06-13T22:33:56Z</dc:date>
    </item>
  </channel>
</rss>

