Splunk Search

How to create a table column specific column width adjustment

DataOrg
Builder

I have around 10 columns in table and want to set the first 3 columns to 10% width and i used below method but its not applying the column width correctly. Need help in fixing the error

 

<row>
    <panel>
      <html depends="$alwaysHideCSSPanel$">
        <style>
          #tableColumWidth table thead tr th:nth-child(1),
          #tableColumWidth table thead tr th:nth-child(2,
           #tableColumWidth table thead tr th:nth-child(3)
{
            width: 10% !important;
            overflow-wrap: anywhere !important;
          }          
        </style>
      </html>
      <table id="tableColumWidth">

 


 

Labels (1)
Tags (4)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

See updated response to your other similar question

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

See updated response to your other similar question

0 Karma

megha0794
New Member

Hello,

Im noticing a similar issue in my dashboard panel. I want to adjust the width of one specific column because there is a lot of content to be displayed. The number of columns here are pretty high(around 22). So there is a scroll bar to move to the right to see the rest of the columns. In this case, even when I assign width  with a specific px or %, it doesnt reflect. But when i reduce my number of columns and scrollbar doesnt appear, it adjusts the width as specified. Please suggest how to work around this.

Regards,

Megha

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...