Dashboards & Visualizations

How to set the background color for panel

madanashok
Path Finder

Hi,

when we use this code below

we will get a panel which appears white in splunk.
But i want to set a desired background color for the panel as my wish.

Please help me out.

Thanks

Tags (1)

Drainy
Champion

The actual CSS you need to use in application.css in $SPLUNK_HOME/etc/apps/APPNAME/appserver/static/

would be something like;

.panel_row3_col1 .layoutCellInner{
     background-color: #000000;
}

When using groups Splunk will split a div in half without adding a class, you can use jQuery to add a class name to the group which you can then apply CSS against but I suspect you probably want to colour the whole panel

dart
Splunk Employee
Splunk Employee

You can do this by using CSS in your application.css.

You'll find if you inspect the page with Chrome's Inspector or with Firebug, that there are divs with classes like panel_row1_col1, which you can use in your selector.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...