<?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 aligning single value output. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/aligning-single-value-output/m-p/41287#M1970</link>
    <description>&lt;P&gt;hi all, &lt;BR /&gt;
i am using several single value results in my dashboard and i am using the tags.&lt;BR /&gt;
the code sample is like this and repeated several times.&lt;BR /&gt;
    &lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
&lt;ROW&gt;&lt;SINGLE&gt;&lt;BR /&gt;
    &lt;SEARCHSTRING&gt;&lt;BR /&gt;
     blabla   &lt;/SEARCHSTRING&gt;&lt;BR /&gt;
    ServerName: &lt;SINGLE&gt; &lt;/SINGLE&gt;&lt;/SINGLE&gt;&lt;/ROW&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;so my output is like&lt;/P&gt;

&lt;P&gt;labe1:value&lt;BR /&gt;
 labelllll2:value2&lt;BR /&gt;
 la:value3&lt;BR /&gt;
   how to align it like&lt;BR /&gt;
    label      :    value1&lt;BR /&gt;
    labelllll2 :    value2&lt;BR /&gt;
    la         :    value3&lt;BR /&gt;
please help..&lt;BR /&gt;
thankyou &lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2012 10:42:40 GMT</pubDate>
    <dc:creator>smolcj</dc:creator>
    <dc:date>2012-11-21T10:42:40Z</dc:date>
    <item>
      <title>aligning single value output.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/aligning-single-value-output/m-p/41287#M1970</link>
      <description>&lt;P&gt;hi all, &lt;BR /&gt;
i am using several single value results in my dashboard and i am using the tags.&lt;BR /&gt;
the code sample is like this and repeated several times.&lt;BR /&gt;
    &lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
&lt;ROW&gt;&lt;SINGLE&gt;&lt;BR /&gt;
    &lt;SEARCHSTRING&gt;&lt;BR /&gt;
     blabla   &lt;/SEARCHSTRING&gt;&lt;BR /&gt;
    ServerName: &lt;SINGLE&gt; &lt;/SINGLE&gt;&lt;/SINGLE&gt;&lt;/ROW&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;so my output is like&lt;/P&gt;

&lt;P&gt;labe1:value&lt;BR /&gt;
 labelllll2:value2&lt;BR /&gt;
 la:value3&lt;BR /&gt;
   how to align it like&lt;BR /&gt;
    label      :    value1&lt;BR /&gt;
    labelllll2 :    value2&lt;BR /&gt;
    la         :    value3&lt;BR /&gt;
please help..&lt;BR /&gt;
thankyou &lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 10:42:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/aligning-single-value-output/m-p/41287#M1970</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-11-21T10:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: aligning single value output.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/aligning-single-value-output/m-p/41288#M1971</link>
      <description>&lt;P&gt;Not easily with CSS, and since its unlikely the font you'll be using is monospaced, it wont be easy to correct the spacing with padding.&lt;/P&gt;

&lt;P&gt;This CSS :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.singleLabel {
    display: inline-block;
    min-width: 80px;
    text-align: right;
}
.singleResult {
    display: inline-block;
    min-width: 80px;
    text-align: left;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;should&lt;/EM&gt; line up your data ( you might have to play with the widths )&lt;/P&gt;

&lt;P&gt;but it'll look like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;         label : value1
    labelllll2 : value2
            la : value3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/AdvancedDev/UseCSS"&gt;How to apply custom CSS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 12:29:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/aligning-single-value-output/m-p/41288#M1971</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2012-11-21T12:29:56Z</dc:date>
    </item>
  </channel>
</rss>

