Splunk Search

css styles not working for dashboard title.

sanjum01
Explorer

Hi Folks,
so I have below code but for some reason my css code not rendering, what am I missing?

<dashboard>
<label>Processing_Step_Clone_2</label>
<row>
<panel id="PStitle">
<title>Processing Steps for Source$form.Source$ - $form.earliest_date$ - $form.time$</title>
<html>
<style>
.dashboard-row #PStitle .dashboard-panel panel-title {
font-size: 40px !important;
color: #7FFF00;
}
</style>
</html>

Labels (1)
Tags (1)
0 Karma
1 Solution

kamlesh_vaghela
SplunkTrust
SplunkTrust

@sanjum01 

Can you please try this?

<dashboard>
<label>header title</label>
<row>
<panel id="PStitle">
<title>Processing Steps for Source$form.Source$ - $form.earliest_date$ - $form.time$</title>
<html>
<style>
#PStitle .panel-title {
font-size: 40px !important;
color: #7FFF00;
}
</style>
</html>
</panel>
</row>
</dashboard>

 

Screenshot 2021-11-05 at 10.50.42 AM.png

 

Thanks
KV
▄︻̷̿┻̿═━一   😉

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated. 

View solution in original post

kamlesh_vaghela
SplunkTrust
SplunkTrust

@sanjum01 

Can you please try this?

<dashboard>
<label>header title</label>
<row>
<panel id="PStitle">
<title>Processing Steps for Source$form.Source$ - $form.earliest_date$ - $form.time$</title>
<html>
<style>
#PStitle .panel-title {
font-size: 40px !important;
color: #7FFF00;
}
</style>
</html>
</panel>
</row>
</dashboard>

 

Screenshot 2021-11-05 at 10.50.42 AM.png

 

Thanks
KV
▄︻̷̿┻̿═━一   😉

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated. 

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...