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!

Enterprise Security Content Update (ESCU) | New Releases

In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...

Index This | Divide 100 by half. What do you get?

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

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...