Dashboards & Visualizations

Help me to align panel title center

paullt12345
Explorer

Hi All

I need to align panel title in center, Please help me to achieve the same.

Thanks.

0 Karma
1 Solution

vnravikumar
Champion

Hi

Try this using CSS.

<dashboard>
  <row depends="$hide$">
    <panel>
      <html>
      <style>
        #test h2 {
        text-align: center !important;
        }
      </style>
    </html>
    </panel>
  </row>
  <row>
    <panel id="test">
      <title>Sample Panel Title</title>
      <table>
        <search>
          <query>index="_internal" |stats count by host</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>

View solution in original post

vnravikumar
Champion

Hi

Try this using CSS.

<dashboard>
  <row depends="$hide$">
    <panel>
      <html>
      <style>
        #test h2 {
        text-align: center !important;
        }
      </style>
    </html>
    </panel>
  </row>
  <row>
    <panel id="test">
      <title>Sample Panel Title</title>
      <table>
        <search>
          <query>index="_internal" |stats count by host</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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