<?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: Adjust top margin on a panel with different inputs using CSS in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Adjust-top-margin-on-a-panel-with-different-inputs-using-CSS/m-p/518210#M34775</link>
    <description>&lt;P&gt;Even though your labels appear to be empty, they are &amp;amp;nbsp; so they occupy some space. Try adding&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;          #link_button_1 label, #link_button_2 label, #textbox_1 label, #textbox_2 label{
            display: none;
          }&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 07 Sep 2020 11:34:41 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-09-07T11:34:41Z</dc:date>
    <item>
      <title>Adjust top margin on a panel with different inputs using CSS</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Adjust-top-margin-on-a-panel-with-different-inputs-using-CSS/m-p/518204#M34774</link>
      <description>&lt;P&gt;Hello there!&lt;/P&gt;&lt;P&gt;I am struggling to reduce the top margin on a panel with a text input and a link input using CSS.&lt;/P&gt;&lt;P&gt;I want to reduce top-margin and still have both elements aligned horizontally:&lt;/P&gt;&lt;P&gt;What I wish:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen6.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10682i09A006105D983246/image-size/medium?v=v2&amp;amp;px=400" role="button" title="screen6.png" alt="screen6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I use 'display: flex', the top margin applies but the button moves under the textbox:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;display : flex;
margin-top: 0vw !important;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen5.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10681iA05AF8A41097296C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="screen5.png" alt="screen5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Without 'display: flex' elements remain aligned but the top margin just does not apply:&lt;/P&gt;&lt;LI-CODE lang="css"&gt;margin-top: 0vw !important;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen7.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10680iAD3D3975AB5A7207/image-size/medium?v=v2&amp;amp;px=400" role="button" title="screen7.png" alt="screen7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried several display / flex options without luck so far.&lt;/P&gt;&lt;P&gt;My test dashboard:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Panel Height&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;input id="textbox_1" type="text" token="text_1_tok"&amp;gt;
        &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;Test1&amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input id="link_button_1" type="link" token="link_1_tok"&amp;gt;
        &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
        &amp;lt;choice value="true"&amp;gt;A&amp;lt;/choice&amp;gt;
      &amp;lt;/input&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #link_button_1 div[data-component="splunk-core:/splunkjs/mvc/components/LinkList"], #link_button_2 div[data-component="splunk-core:/splunkjs/mvc/components/LinkList"]{
            width: 23% !important;
          }
          #link_button_1 button, #link_button_2 button{
            margin-right: 10px;
          }
          #textbox_1, #textbox_2{
            margin-left: 8vw;
          }
          #link_button_1, #link_button_2, #textbox_1, #textbox_2{
            margin-top: 0vw !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Anyone has a clue?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 10:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Adjust-top-margin-on-a-panel-with-different-inputs-using-CSS/m-p/518204#M34774</guid>
      <dc:creator>D2SI</dc:creator>
      <dc:date>2020-09-07T10:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust top margin on a panel with different inputs using CSS</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Adjust-top-margin-on-a-panel-with-different-inputs-using-CSS/m-p/518210#M34775</link>
      <description>&lt;P&gt;Even though your labels appear to be empty, they are &amp;amp;nbsp; so they occupy some space. Try adding&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;          #link_button_1 label, #link_button_2 label, #textbox_1 label, #textbox_2 label{
            display: none;
          }&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 07 Sep 2020 11:34:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Adjust-top-margin-on-a-panel-with-different-inputs-using-CSS/m-p/518210#M34775</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-07T11:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust top margin on a panel with different inputs using CSS</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Adjust-top-margin-on-a-panel-with-different-inputs-using-CSS/m-p/518229#M34777</link>
      <description>&lt;P&gt;Did not realized that! Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 13:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Adjust-top-margin-on-a-panel-with-different-inputs-using-CSS/m-p/518229#M34777</guid>
      <dc:creator>D2SI</dc:creator>
      <dc:date>2020-09-07T13:14:52Z</dc:date>
    </item>
  </channel>
</rss>

