In a dashboard column,
I want numbers to be aligned in the center.
Currently, it's coming to the right side.
Hi @rashi83,
You can do that with a little CSS magic, could you try the solution here and let me know if it works out for you ?
https://answers.splunk.com/answers/593401/how-to-allign-cell-values-of-table-in-splunk-dashb.html
Should be as simple as defining an ID for the table and then applying CSS to it.
Cheers,
David
Hi @rashi83,
You can do that with a little CSS magic, could you try the solution here and let me know if it works out for you ?
https://answers.splunk.com/answers/593401/how-to-allign-cell-values-of-table-in-splunk-dashb.html
Should be as simple as defining an ID for the table and then applying CSS to it.
Cheers,
David
Thanks, how can I find dashboard css?
check out the link it's all there ^^ and let me know if you're still stuck 🙂
Hi David ,
I added following code at the end of the splunkjs-dashboard.css and restarted the splunk as well.
<<.table th, .table td{text-align: center!important}>>
I have added this as I want alignment for all tables. But still no luck !
you should do it from the XML:
<panel>
<html depends="$alwaysHideCSS$">
<style>
#table1 .table th, .table td {
text-align: center!important;
}
</style>
</html>
....
<table id="table1">
....
</table>
Thanks David , it worked after putting it in XML
most welcome ! please upvote and accept 🙂
Already done 🙂