<?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: Right Align Table Cells in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Right-Align-Table-Cells/m-p/93866#M24157</link>
    <description>&lt;P&gt;Updated for Splunk 6.x :-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.results-table .wrapped-results th:nth-child(5), .results-table .wrapped-results td:nth-child(5) {
        text-align: right;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;L.&lt;/P&gt;</description>
    <pubDate>Sun, 12 Apr 2015 23:59:01 GMT</pubDate>
    <dc:creator>lukeh</dc:creator>
    <dc:date>2015-04-12T23:59:01Z</dc:date>
    <item>
      <title>Right Align Table Cells</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Right-Align-Table-Cells/m-p/93864#M24155</link>
      <description>&lt;P&gt;When creating a dashboard, I'd like to align the cells with numbers in them to the right (default is left).  Any ideas on how to do that?&lt;/P&gt;

&lt;P&gt;Thanks,
-S.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2010 03:13:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Right-Align-Table-Cells/m-p/93864#M24155</guid>
      <dc:creator>srussellnpr</dc:creator>
      <dc:date>2010-11-24T03:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Right Align Table Cells</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Right-Align-Table-Cells/m-p/93865#M24156</link>
      <description>&lt;P&gt;Normally the answer is CSS. You could do it at the application level, but to avoid bleedover into other places, it's likely better done at the individual view.&lt;/P&gt;

&lt;P&gt;To set a per-dashboard stylesheet, edit your &lt;CODE&gt;&amp;lt;view&amp;gt;&lt;/CODE&gt; tag at the top:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;view stylesheet="mystylesheet.css" template="dashboard.html" ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;

&lt;/P&gt;&lt;P&gt;and create your CSS file as appserver/static/mystylesheet.css, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/* Right-align values in the fifth td tag of the table row */
table.simpleResultsTable tr td:nth-child(5) {
    text-align: right;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the browsers your using don't support &lt;CODE&gt;nth-child&lt;/CODE&gt; directly, you may be able to find another way to declare the CSS, or maybe you can get around it with jQuery.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2010 06:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Right-Align-Table-Cells/m-p/93865#M24156</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-11-24T06:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Right Align Table Cells</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Right-Align-Table-Cells/m-p/93866#M24157</link>
      <description>&lt;P&gt;Updated for Splunk 6.x :-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.results-table .wrapped-results th:nth-child(5), .results-table .wrapped-results td:nth-child(5) {
        text-align: right;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;L.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2015 23:59:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Right-Align-Table-Cells/m-p/93866#M24157</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2015-04-12T23:59:01Z</dc:date>
    </item>
  </channel>
</rss>

