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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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