Dashboards & Visualizations

How can I make the column content align to right while the title of this panel is center-aligned ?

Jouman
Path Finder

Hi all,

I have a panel with 4 columns and I configure the panel settings in "htmlPanel1A".

 

<panel id="htmlPanel1A">

 


Due to different values in each columns, I sometimes found 3 columns look like left-aligned while the rest 1 column looks like right-aligned content. I think the problem comes from center-aligned in the default setting.


I would like to change into right-aligned for all columns but remains the title of the panel is center-aligned. Is there any suggestion on my CSS configuration to fulfill the purpose?

 

<panel depends="$alwaysHideCSS$">
      <html>
        <div>            
          <style>
            /* define some default colors */
            .dashboard-row .dashboard-panel{
              background-color:lightcyan !important;
            }  
            .dashboard-panel h2{
              background:cyan !important;
              color:FFFFFF !important;
              text-align: center !important;
              font-weight: bold !important;
              border-top-right-radius: 12px;
              border-top-left-radius: 12px;
            }            
            /* override default colors by panel id */            
            #htmlPanel1 h2,#htmlPanel1A h2{
              color:#3C444D !important;
              background-color:#FFFFFF !important;
            } 
.....
         </style>
        </div>
      </html>
    </panel>

 

 

 

 

 

 
Thank you so much.

Labels (1)
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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

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, ...