<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I center a SingleValue displayed in a panel? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-center-a-SingleValue-displayed-in-a-panel/m-p/16391#M444</link>
    <description>&lt;P&gt;using auto on margin left &amp;amp; right didn't work for me. Instead using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;width: auto;
min-width: 100%;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;worked for me.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2013 04:21:21 GMT</pubDate>
    <dc:creator>Parameshwara</dc:creator>
    <dc:date>2013-04-12T04:21:21Z</dc:date>
    <item>
      <title>How do I center a SingleValue displayed in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-center-a-SingleValue-displayed-in-a-panel/m-p/16387#M440</link>
      <description>&lt;P&gt;We have a dashboard that has a number of panels (2 rows with 3 panels each).  The second row has a SingleValue element displayed in each of the 3 panels, but the elements are left-justified inside the panel and we would like them centered.  The docs for SingleValue and the surrounding modules don't seem to have a parameter that we can set to determine where the SingleValue is displayed within the panel&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 02:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-center-a-SingleValue-displayed-in-a-panel/m-p/16387#M440</guid>
      <dc:creator>beaumaris</dc:creator>
      <dc:date>2010-06-29T02:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I center a SingleValue displayed in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-center-a-SingleValue-displayed-in-a-panel/m-p/16388#M441</link>
      <description>&lt;P&gt;You can edit the stylesheet definitions for the SingleValue panels. You can either do this system wide in &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/share/splunk/search_mrsparkle/exposed/css/skins/default/default.css
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or at a splunk app level in&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/apps/YOUR_APP_NAME/appserver/static/application.css
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The class you need to modify is &lt;CODE&gt;.SingleValueHolder&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;W3C guide on centering things with CSS: &lt;A href="http://www.w3.org/Style/Examples/007/center" rel="nofollow"&gt;http://www.w3.org/Style/Examples/007/center&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;[edit:]
In addition you should be able to define a custom class in your application.css stylesheet and then apply it to the SingleValue module using the additionalClass parameter. This would probably be the cleaner approach. Rather than centering all SingleValue modules this way you can control which ones will be centered. Check out the available params: &lt;A href="http://www.splunk.com/base/Documentation/4.1/Developer/ModuleReference#SingleValue" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1/Developer/ModuleReference#SingleValue&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 03:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-center-a-SingleValue-displayed-in-a-panel/m-p/16388#M441</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-06-29T03:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I center a SingleValue displayed in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-center-a-SingleValue-displayed-in-a-panel/m-p/16389#M442</link>
      <description>&lt;P&gt;Worked perfectly, the following simple snippet did the trick:&lt;/P&gt;

&lt;P&gt;.SingleValueHolder {&lt;BR /&gt;
    margin-left: auto ;&lt;BR /&gt;
    margin-right: auto ;&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2010 04:05:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-center-a-SingleValue-displayed-in-a-panel/m-p/16389#M442</guid>
      <dc:creator>beaumaris</dc:creator>
      <dc:date>2010-06-29T04:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I center a SingleValue displayed in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-center-a-SingleValue-displayed-in-a-panel/m-p/16390#M443</link>
      <description>&lt;P&gt;This worked for me instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/* SingleValue position*/
.SingleValue .SingleValueHolder {
color:#111111;
font-size:15px;
font-weight:300;
width: auto;
min-width: 100%;
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Apr 2013 04:19:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-center-a-SingleValue-displayed-in-a-panel/m-p/16390#M443</guid>
      <dc:creator>Parameshwara</dc:creator>
      <dc:date>2013-04-12T04:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I center a SingleValue displayed in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-center-a-SingleValue-displayed-in-a-panel/m-p/16391#M444</link>
      <description>&lt;P&gt;using auto on margin left &amp;amp; right didn't work for me. Instead using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;width: auto;
min-width: 100%;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;worked for me.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 04:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-center-a-SingleValue-displayed-in-a-panel/m-p/16391#M444</guid>
      <dc:creator>Parameshwara</dc:creator>
      <dc:date>2013-04-12T04:21:21Z</dc:date>
    </item>
  </channel>
</rss>

