<?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 reduce the specific column width in a table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519419#M146299</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/65124"&gt;@spkriyaz&lt;/a&gt;&amp;nbsp;if you have used CSS before each DOM element is supposed to have a unique ID. Hope you are not using id as a class which is generic. Also, since it is ID you can have only one. If you already have table id="highlight" and are sure you have no other table with the same ID and do not want similar CSS applied to any other table in the dashboard, you can &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;#&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;tableColumnWidth&lt;/STRONG&gt;&lt;/FONT&gt; with &lt;FONT color="#339966"&gt;&lt;STRONG&gt;#highlight&lt;/STRONG&gt;&lt;/FONT&gt; in the CSS override and it should work. No need to change any of your existing XML.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please try out and confirm. I would recommend going through the Clara-fication Blog to get references for CSS and understanding how to use CSS overrides in Splunk Simple XML Dashboards:&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/splunk-clara-fication-customizing-simplexml-dashboards-with-inline-css.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/splunk-clara-fication-customizing-simplexml-dashboards-with-inline-css.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2020 12:28:15 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2020-09-14T12:28:15Z</dc:date>
    <item>
      <title>How to reduce the specific column width in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519379#M146279</link>
      <description>&lt;P&gt;&lt;U&gt;Hi,&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I have a panel where it has 5 columns in it. I want to reduce the width of the 4th and 5th column alone and rest of the three columns can be of the default size.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me here whether is there any option to do it in simple xml.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 09:03:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519379#M146279</guid>
      <dc:creator>spkriyaz</dc:creator>
      <dc:date>2020-09-14T09:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to reduce the specific column width in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519390#M146287</link>
      <description>&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Column-width/td-p/309644" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Column-width/td-p/309644&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 10:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519390#M146287</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-14T10:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to reduce the specific column width in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519405#M146289</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/65124"&gt;@spkriyaz&lt;/a&gt;&amp;nbsp;try something like the following where table has &lt;STRONG&gt;id="tableColumnWidth"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;If you want to understand Simple XML CSS extension better, refer to the following Clara-fication blog by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185679"&gt;@cmerriman&lt;/a&gt;&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/splunk-clara-fication-customizing-simplexml-dashboards-with-inline-css.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/splunk-clara-fication-customizing-simplexml-dashboards-with-inline-css.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(PS: The following is demo code hence CSS has been added directly in Simple XML dashboard, you should ideally move this to your App level CSS static file and reference the stylesheet in your dashboard/s for re-usability, app level consistent style and avoiding duplicate/redundant styling).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html depends="$alwaysHideCSSPanel$"&amp;gt;
        &amp;lt;style&amp;gt;
          #tableColumWidth table thead tr th:nth-child(4),
          #tableColumWidth table thead tr th:nth-child(5){
            width: 10% !important;
            overflow-wrap: anywhere !important;
          }          
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
      &amp;lt;table id="tableColumWidth"&amp;gt;
        ...
        ...
        ...&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 14 Sep 2020 11:49:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519405#M146289</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-14T11:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to reduce the specific column width in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519414#M146294</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your help, could you please tell me how to add this table ID to the table which already has another table ID. Basically, i have "highlight" which i use to encircle the row and now I want to add the table ID "tableColumnWidth" to it. Is it possible to have ID's in the same table? I tried to separate with comma like shown below but it throws syntax error&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;table id="highlight" , "tableColumnWidth"&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 12:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519414#M146294</guid>
      <dc:creator>spkriyaz</dc:creator>
      <dc:date>2020-09-14T12:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to reduce the specific column width in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519419#M146299</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/65124"&gt;@spkriyaz&lt;/a&gt;&amp;nbsp;if you have used CSS before each DOM element is supposed to have a unique ID. Hope you are not using id as a class which is generic. Also, since it is ID you can have only one. If you already have table id="highlight" and are sure you have no other table with the same ID and do not want similar CSS applied to any other table in the dashboard, you can &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;#&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;tableColumnWidth&lt;/STRONG&gt;&lt;/FONT&gt; with &lt;FONT color="#339966"&gt;&lt;STRONG&gt;#highlight&lt;/STRONG&gt;&lt;/FONT&gt; in the CSS override and it should work. No need to change any of your existing XML.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please try out and confirm. I would recommend going through the Clara-fication Blog to get references for CSS and understanding how to use CSS overrides in Splunk Simple XML Dashboards:&amp;nbsp;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/splunk-clara-fication-customizing-simplexml-dashboards-with-inline-css.html" target="_blank"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/splunk-clara-fication-customizing-simplexml-dashboards-with-inline-css.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 12:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519419#M146299</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-14T12:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to reduce the specific column width in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519436#M146306</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;it worked well, since my highlight ID was unique so was able use the same ID name for the tablecolumnwidth as well. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 13:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reduce-the-specific-column-width-in-a-table/m-p/519436#M146306</guid>
      <dc:creator>spkriyaz</dc:creator>
      <dc:date>2020-09-14T13:15:39Z</dc:date>
    </item>
  </channel>
</rss>

