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
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...