<?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: CSS to align customized inputs with Splunk default inputs horizontally in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/506287#M33653</link>
    <description>&lt;P&gt;Glad you got it working, do upvote the answers if they helped!&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jun 2020 13:15:06 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2020-06-26T13:15:06Z</dc:date>
    <item>
      <title>CSS to align customized inputs with Splunk default inputs horizontally</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/505671#M33565</link>
      <description>&lt;P&gt;I have implemented a customized date input but this is not getting aligned with my other inputs in the same row. I am attaching the screenshot to show how it is getting aligned currently. I want all the inputs in one row horizontally. Here's what I tried:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="dateContainer"&gt;&lt;DIV class="dateInput"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;panel&amp;gt;
   &amp;lt;html&amp;gt;
      &amp;lt;style&amp;gt;.dateContainer{
      display:flex;
      margin-top: 0px !important;
      margin-right: 10px !important;
      margin-bottom: 0px !important;
      margin-left: 0px !important;
      }
      .dateInput{
      padding-right:15px !important;
      }
      .#test1{
      display:flex;
      margin-top: 0px !important;
      margin-right: 10px !important;
      margin-bottom: 0px !important;
      margin-left: 10px !important;
      }
      .#test2{
      display:flex;
      margin-top: 0px !important;
      margin-right: 10px !important;
      margin-bottom: 0px !important;
      margin-left: 20px !important;
      }&amp;lt;/style&amp;gt;
      &amp;lt;div class="dateContainer"&amp;gt;
         &amp;lt;div class="dateInput"&amp;gt;
            &amp;lt;div&amp;gt;From Date:&amp;lt;/div&amp;gt;
            &amp;lt;input id="from_default1" type="date" name="fromDate" value="$from_default1$" /&amp;gt;
         &amp;lt;/div&amp;gt;
         &amp;lt;div class="dateInput"&amp;gt;
            &amp;lt;div&amp;gt;To Date:&amp;lt;/div&amp;gt;
            &amp;lt;input id="to_default1" type="date" name="toDate" value="$to_default1$" /&amp;gt;
         &amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;
   &amp;lt;/html&amp;gt;
   &amp;lt;input type="dropdown" token="field1" id="test1"&amp;gt;
      &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;
   &amp;lt;/input&amp;gt;
   &amp;lt;input type="dropdown" token="field2" id="test2"&amp;gt;
      &amp;lt;label&amp;gt;Test&amp;lt;/label&amp;gt;
   &amp;lt;/input&amp;gt;
&amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Jun 2020 18:23:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/505671#M33565</guid>
      <dc:creator>nagar57</dc:creator>
      <dc:date>2020-06-23T18:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: CSS to align customized inputs with Splunk default inputs horizontally</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/505806#M33575</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/186601"&gt;@nagar57&lt;/a&gt;&amp;nbsp;add id to the panel with inputs i.e.&amp;nbsp;&lt;STRONG&gt;id="panel_input"&lt;/STRONG&gt; and then add the following CSS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel id="panel_input"&amp;gt;
       &amp;lt;html&amp;gt;
          &amp;lt;style&amp;gt;
          #panel_input .dashboard-panel{
            display: flex !important;
          }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 18:32:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/505806#M33575</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-06-23T18:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: CSS to align customized inputs with Splunk default inputs horizontally</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/506106#M33626</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;This CSS is bringing the entire panel content in one line including the table (if I have in the panel). Also, The date inputs I want in the starting. By using this CSS it is getting placed at the end. Could you please help with the alignment issue. TIA!!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 07:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/506106#M33626</guid>
      <dc:creator>nagar57</dc:creator>
      <dc:date>2020-06-25T07:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: CSS to align customized inputs with Splunk default inputs horizontally</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/506194#M33638</link>
      <description>&lt;P&gt;That is because you did not have table in your snippet &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Move the table to second row. Keep inputs in single row single panel and my solution will work. That is exactly the code that was shared in the question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other option would be to create two panels in one row as input panels one with Splunk input, other with html input and format as per need using CSS.&lt;/P&gt;&lt;P&gt;If not you might have to share the screenshot of issue with code and anonymize any sensitive information in both.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 17:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/506194#M33638</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-06-25T17:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: CSS to align customized inputs with Splunk default inputs horizontally</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/506249#M33649</link>
      <description>&lt;P&gt;This is what I tried and did the trick.&lt;/P&gt;&lt;P&gt;Created a separate row for inputs and 2 panels inside it. 1st one for Date inputs and Second one for other inputs and with custom css I merged the 2 panels and adjusted the position.&lt;/P&gt;&lt;P&gt;&amp;lt;row id="earn_input_panel"&amp;gt;&lt;BR /&gt;&amp;lt;panel id="earn_date_input"&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;.dateContainer{&lt;BR /&gt;display:flex;&lt;BR /&gt;}&lt;BR /&gt;.dateInput{&lt;BR /&gt;padding-right:25px;&lt;BR /&gt;}&lt;BR /&gt;#earn_input_panel .dashboard-panel{&lt;BR /&gt;margin-right: 0px !important;&lt;BR /&gt;}&lt;BR /&gt;#earn_date_input{&lt;BR /&gt;width:30% !important;&lt;BR /&gt;}&lt;BR /&gt;#earn_other_input{&lt;BR /&gt;width:70% !important;&lt;BR /&gt;}&lt;BR /&gt;#earn_campaign_input{&lt;BR /&gt;margin-top: 30px !important;&lt;BR /&gt;}&lt;BR /&gt;#earn_market_input{&lt;BR /&gt;margin-top: 30px !important;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;div class="dateContainer"&amp;gt;&lt;BR /&gt;&amp;lt;div class="dateInput"&amp;gt;&lt;BR /&gt;&amp;lt;div&amp;gt;From Date:&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;input id="earn_from" type="date" name="fromDate" value="$earn_from$"/&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div class="dateInput"&amp;gt;&lt;BR /&gt;&amp;lt;div&amp;gt;To Date:&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;input id="earn_to" type="date" name="toDate" value="$earn_to$"/&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;panel id="earn_other_input"&amp;gt;&lt;BR /&gt;&amp;lt;input id="earn_market_input" type="dropdown" token="earnMarket"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Country&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;&lt;BR /&gt;&amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;&lt;BR /&gt;&amp;lt;fieldForLabel&amp;gt;market&amp;lt;/fieldForLabel&amp;gt;&lt;BR /&gt;&amp;lt;fieldForValue&amp;gt;market&amp;lt;/fieldForValue&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;&amp;lt;Search query&amp;gt;&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;BR /&gt;&amp;lt;input id="earn_campaign_input" type="text" token="earnCampaign"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Campaign&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 05:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/506249#M33649</guid>
      <dc:creator>nagar57</dc:creator>
      <dc:date>2020-06-26T05:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: CSS to align customized inputs with Splunk default inputs horizontally</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/506287#M33653</link>
      <description>&lt;P&gt;Glad you got it working, do upvote the answers if they helped!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 13:15:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/CSS-to-align-customized-inputs-with-Splunk-default-inputs/m-p/506287#M33653</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-06-26T13:15:06Z</dc:date>
    </item>
  </channel>
</rss>

