Dashboards & Visualizations

How can we give two different styling for two different panel present in a row using <style>

sushreeabatirna
New Member

Hi All,

Below is my dashboard,

I have two panels- want 2 different type of border for each to segregate .how can i do that . I wanted to use id of the element to fetch the particular element . But its not working .

sushreeabatirna_0-1591847098229.png

 

.dashboard-row .dashboard-panel dashboard-element #element4{

border-style: solid;
border-color: #92a8d1;
border-width: thick;
}

Labels (3)
0 Karma

Jawahir
Communicator

Edit the simple XML code and add an "id" attribute to the <row> element (<row id="p1").

and inside panel specify your CSS style in a <style> tag (<html><style> #id{ your css style here...}</style></html>)

repeat the procedure for the second panel too.

i think this is what you asking for.......

eg:-

<row id="p1">
<panel>
<title>panel1</title>
<single>
<search>
<query>index=_internal|stats count</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="drilldown">none</option>
</single>
<html>
<style>
#p1{
border-color: #92a8d1;
border-width: thick;
border-style: solid;
}
</style>
</html>
</panel>
</row>

 

Tags (2)
0 Karma

Jawahir
Communicator

Edit the simple XML code and add an "id" attribute to the <row> element (<row id="p1").

and inside panel specify your CSS style in a <style> tag (<html><style> #id{ your css style here...}</style></html>)

repeat the procedure for the second panel too.

i think this is what you asking for.......

eg:-

<row id="p1">
<panel>
<title>panel1</title>
<single>
<search>
<query>index=_internal|stats count</query>
<earliest>-24h@h</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="drilldown">none</option>
</single>
<html>
<style>
#p1{
border-color: #92a8d1;
border-width: thick;
border-style: solid;
}
</style>
</html>
</panel>
</row>

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...