@surekhasplunk, Similar question was answered yesterday: https://answers.splunk.com/answers/412272/align-the-first-column-of-the-table.html
For a table with id="table1"
, following is CSS style override code:
<panel>
<html depends="$alwaysHideCSS$">
<style>
#table1 .table th, .table td {
text-align: center!important;
}
</style>
</html>
....
<table id="table1">
....
</table>
</panel>
Please try out and confirm.
@surekhasplunk, Similar question was answered yesterday: https://answers.splunk.com/answers/412272/align-the-first-column-of-the-table.html
For a table with id="table1"
, following is CSS style override code:
<panel>
<html depends="$alwaysHideCSS$">
<style>
#table1 .table th, .table td {
text-align: center!important;
}
</style>
</html>
....
<table id="table1">
....
</table>
</panel>
Please try out and confirm.
Can anyone please advise if this applies to Splunk v7.3.3 or if there is something else needed? We tried applying this but it did not align the table. Thank you.
<panel> <html depends="$alwaysHideCSS$"> <style> #table1 .table th, .table td { text-align: center!important; } </style> </html> .... <table id="table1"> .... </table> </panel>
Hi surekhasplunk,
to change default alignment rules in table cells, you have to modify dashboard's CSS.
Bye.
Giuseppe