Dashboards & Visualizations

Help on background color in css

jip31
Motivator

hi

I added the code below in my xml

 <row>
        <panel >
          <html>
            <div class="z">tototututatatitidiv</div>
          </html>
        </panel>
      </row>

I try to add a background color to my div tag like this but it just color the background behind the text instead the plenty background
what I have to do please??

     .z {background: #848484 !important;
                 }
Tags (1)
0 Karma

vnravikumar
Champion

Try like

 <style>
         .z {
         background-color:#848484 !important;

            }
      </style>
0 Karma

jip31
Motivator

perfect thanks

0 Karma

vnravikumar
Champion

please accept.

0 Karma

vnravikumar
Champion

Are you want to give background color only for text not complete div?

0 Karma

vnravikumar
Champion

if that is the case try with

      <style>
         .z {
         background: #848484 !important;
         display:inline;

            }
      </style>
0 Karma

jip31
Motivator

no I want complete div please

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...