<?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: How to bold specific column headers in a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627837#M218137</link>
    <description>&lt;P&gt;I actually did look at this, but thought you could only use &lt;STRONG&gt;even&lt;/STRONG&gt;, &lt;STRONG&gt;odd&lt;/STRONG&gt;, or &lt;STRONG&gt;math patterns&lt;/STRONG&gt;.&amp;nbsp; TIL, thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 21:05:37 GMT</pubDate>
    <dc:creator>DEADBEEF</dc:creator>
    <dc:date>2023-01-20T21:05:37Z</dc:date>
    <item>
      <title>How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627658#M218090</link>
      <description>&lt;P&gt;I have a dashboard with a table with 6 headers.&amp;nbsp; I would like to bold the text of the second, fourth, and fifth column headers.&amp;nbsp; I searched around but could only find solutions for the first or last column headers (first-child, last-child) but nothing for anything in-between.&lt;/P&gt;&lt;P&gt;If bolding isn't an option, I would also be open to simply coloring the background of that column from the default gray to say blue and make the column header text white or something like that.&amp;nbsp; The idea is to make the 2nd, 4th, and 5th column headers visually standout from the remaining in the table.&lt;/P&gt;&lt;P&gt;Example table:&lt;/P&gt;&lt;P&gt;index &lt;STRONG&gt;second&lt;/STRONG&gt; source &lt;STRONG&gt;fourth&lt;/STRONG&gt; &lt;STRONG&gt;fifth&lt;/STRONG&gt; count&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 22:55:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627658#M218090</guid>
      <dc:creator>DEADBEEF</dc:creator>
      <dc:date>2023-01-19T22:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627661#M218092</link>
      <description>&lt;P&gt;Give your table an id e.g. "tableid" and add some CSS (note indexing starts at zero)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$stayhidden$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #tableid table tbody td[data-cell-index="1"],
          #tableid table tbody td[data-cell-index="3"],
          #tableid table tbody td[data-cell-index="4"]{
            font-weight: bold;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 19 Jan 2023 23:37:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627661#M218092</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-19T23:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627662#M218093</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, I tried what you described but I think something might be off.&amp;nbsp; Here's my test dashboard, you should be able to run this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;dashboard&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;test_css&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;html depends="$stayhidden$"&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;#myTable1 table tbody td[data-cell-index="1"],&lt;BR /&gt;#myTable1 table tbody td[data-cell-index="2"],{&lt;BR /&gt;font-weight: bold;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;table id="myTable1"&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;index="_internal" |stats count by index source host sourcetype&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;-5m@m&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;/dashboard&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 23:54:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627662#M218093</guid>
      <dc:creator>DEADBEEF</dc:creator>
      <dc:date>2023-01-19T23:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627688#M218099</link>
      <description>&lt;P&gt;You have an extra comma before the opening brace of the style.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 07:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627688#M218099</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-20T07:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627783#M218121</link>
      <description>&lt;P&gt;Good catch!&amp;nbsp; I removed the comma before the brace but still not working.&amp;nbsp; Not sure what I am doing wrong here.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 16:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627783#M218121</guid>
      <dc:creator>DEADBEEF</dc:creator>
      <dc:date>2023-01-20T16:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627784#M218122</link>
      <description>&lt;P&gt;Your example (without the extra comma) works for me. Which version of Splunk are you using? Do you have any other typos in your dashboard source?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 16:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627784#M218122</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-20T16:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627787#M218123</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="screenshot" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23474i9313C64D832770A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test_css.png" alt="screenshot" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;screenshot&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Splunk Cloud 9.0.2208.4&lt;/P&gt;&lt;PRE&gt;&amp;lt;dashboard&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;test_css&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;html depends="$stayhidden$"&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;#myTable1 table tbody td[data-cell-index="1"],&lt;BR /&gt;#myTable1 table tbody td[data-cell-index="2"]{&lt;BR /&gt;font-weight: bold;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;table id="myTable1"&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;index="_internal" |stats count by index source host sourcetype&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;-5m@m&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;/dashboard&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 16:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627787#M218123</guid>
      <dc:creator>DEADBEEF</dc:creator>
      <dc:date>2023-01-20T16:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627788#M218124</link>
      <description>&lt;P&gt;You could try adding !important&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;font-weight: bold !important;&lt;/LI-CODE&gt;&lt;P&gt;to stop the style from being overridden by a later style.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 16:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627788#M218124</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-20T16:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627821#M218131</link>
      <description>&lt;P&gt;Have you looked at the&amp;nbsp;&amp;nbsp;:nth-child() pseudo-class? You could specify the specific columns you want using that syntax.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 19:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627821#M218131</guid>
      <dc:creator>fredclown</dc:creator>
      <dc:date>2023-01-20T19:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627827#M218133</link>
      <description>&lt;P&gt;Tried adding the &lt;STRONG&gt;!important;&lt;/STRONG&gt; , but nothing.&amp;nbsp; I also setup the same dashboard on a local install of Splunk 8.8 and it also does not seem to work.&lt;/P&gt;&lt;P&gt;What version of Splunk do you have it where it is working?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 19:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627827#M218133</guid>
      <dc:creator>DEADBEEF</dc:creator>
      <dc:date>2023-01-20T19:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627831#M218134</link>
      <description>&lt;P&gt;I tried it on a 8.1.5 install and a 9.0.3 install and it worked. Below is the CSS I used.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/*Header*/
#myTable1 table thead th:nth-child(2),
#myTable1 table thead th:nth-child(4),
#myTable1 table thead th:nth-child(5) {
  font-weight: bold;
}
/*Body*/
#myTable1 table tbody td:nth-child(2),
#myTable1 table tbody td:nth-child(4),
#myTable1 table tbody td:nth-child(5) {
  font-weight: bold;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 20:15:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627831#M218134</guid>
      <dc:creator>fredclown</dc:creator>
      <dc:date>2023-01-20T20:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627835#M218135</link>
      <description>&lt;P&gt;I don't understand css, but it works with and without the body section.&amp;nbsp; Happy that it's working exactly how I wanted, thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/146503"&gt;@fredclown&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My final solution&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;dashboard&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;test_css&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;html depends="$stayhidden$"&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;#myTable1 table thead th:nth-child(2),&lt;BR /&gt;#myTable1 table thead th:nth-child(3),&lt;BR /&gt;#myTable1 table thead th:nth-child(4) {&lt;BR /&gt;font-weight: bold;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;table id="myTable1"&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;index="_internal" |stats count by index source host sourcetype&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;-5m@m&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;/dashboard&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 20:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627835#M218135</guid>
      <dc:creator>DEADBEEF</dc:creator>
      <dc:date>2023-01-20T20:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627836#M218136</link>
      <description>&lt;P&gt;Which browser are you using?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 21:00:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627836#M218136</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-20T21:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627837#M218137</link>
      <description>&lt;P&gt;I actually did look at this, but thought you could only use &lt;STRONG&gt;even&lt;/STRONG&gt;, &lt;STRONG&gt;odd&lt;/STRONG&gt;, or &lt;STRONG&gt;math patterns&lt;/STRONG&gt;.&amp;nbsp; TIL, thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 21:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627837#M218137</guid>
      <dc:creator>DEADBEEF</dc:creator>
      <dc:date>2023-01-20T21:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627844#M218139</link>
      <description>&lt;P&gt;You're welcome.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 22:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627844#M218139</guid>
      <dc:creator>fredclown</dc:creator>
      <dc:date>2023-01-20T22:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to bold specific column headers in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627846#M218140</link>
      <description>&lt;P&gt;The body part was to bold the body of the table. The other CSS that &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;was suggesting was also targeting the body of the table and not the head.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 22:46:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-bold-specific-column-headers-in-a-table/m-p/627846#M218140</guid>
      <dc:creator>fredclown</dc:creator>
      <dc:date>2023-01-20T22:46:39Z</dc:date>
    </item>
  </channel>
</rss>

