<?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 you put two HTML images side by side in a panel? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380591#M24895</link>
    <description>&lt;P&gt;The html needs to live in a dashboard, one way or another. For a dashboard, you can write Simple XML or Advanced XML or you can use HTML. The  tag defines a dashboard in Advanced XML.&lt;/P&gt;

&lt;P&gt;However, I would write this simple XML for a dashboard instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;dashboard&amp;gt;
 &amp;lt;row&amp;gt;
   &amp;lt;html&amp;gt;
     &amp;lt;h1&amp;gt;HTML Panel Example&amp;lt;/h1&amp;gt;
     &amp;lt;p&amp;gt;The HTML panel displays inline HTML.&amp;lt;/p&amp;gt;
       &amp;lt;img src="picture.jpg"/&amp;gt;
    &amp;lt;/html&amp;gt;
   &amp;lt;/row&amp;gt;
 &amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now you don't need hello.html at all.&lt;/P&gt;

&lt;P&gt;For more info check out the Build Dashboards with Simple XML section of the manual - or start at the beginning of the manual. &lt;A href="https://mindmajix.com/splunk-tool"&gt;learn Splunk&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Dec 2018 06:42:18 GMT</pubDate>
    <dc:creator>micahwilliams12</dc:creator>
    <dc:date>2018-12-26T06:42:18Z</dc:date>
    <item>
      <title>How do you put two HTML images side by side in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380590#M24894</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I would like to display HTML images &lt;STRONG&gt;side by side&lt;/STRONG&gt; in a panel. I realized that the visualization display will rearrange itself, but it does not apply to my HTML images.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6310iA2545CED1DA5BFAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Any idea how can I do this?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 06:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380590#M24894</guid>
      <dc:creator>marvinlee93</dc:creator>
      <dc:date>2018-12-26T06:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do you put two HTML images side by side in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380591#M24895</link>
      <description>&lt;P&gt;The html needs to live in a dashboard, one way or another. For a dashboard, you can write Simple XML or Advanced XML or you can use HTML. The  tag defines a dashboard in Advanced XML.&lt;/P&gt;

&lt;P&gt;However, I would write this simple XML for a dashboard instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;dashboard&amp;gt;
 &amp;lt;row&amp;gt;
   &amp;lt;html&amp;gt;
     &amp;lt;h1&amp;gt;HTML Panel Example&amp;lt;/h1&amp;gt;
     &amp;lt;p&amp;gt;The HTML panel displays inline HTML.&amp;lt;/p&amp;gt;
       &amp;lt;img src="picture.jpg"/&amp;gt;
    &amp;lt;/html&amp;gt;
   &amp;lt;/row&amp;gt;
 &amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now you don't need hello.html at all.&lt;/P&gt;

&lt;P&gt;For more info check out the Build Dashboards with Simple XML section of the manual - or start at the beginning of the manual. &lt;A href="https://mindmajix.com/splunk-tool"&gt;learn Splunk&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 06:42:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380591#M24895</guid>
      <dc:creator>micahwilliams12</dc:creator>
      <dc:date>2018-12-26T06:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you put two HTML images side by side in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380592#M24896</link>
      <description>&lt;P&gt;@marvinlee93 &lt;/P&gt;

&lt;P&gt;You can HTML panel to display HTML content like &lt;CODE&gt;&amp;lt;img&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;See :&lt;BR /&gt;
&lt;STRONG&gt;Use the HTML panel to display static text&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.1/Viz/BuildandeditdashboardswithSimplifiedXML#Use_the_HTML_panel_to_display_static_text"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.1/Viz/BuildandeditdashboardswithSimplifiedXML#Use_the_HTML_panel_to_display_static_text&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I hope this link will help you. Let me know for further assistance. &lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 08:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380592#M24896</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-12-26T08:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do you put two HTML images side by side in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380593#M24897</link>
      <description>&lt;P&gt;@marvinlee93 you can add the two images for &lt;CODE&gt;Green Caution&lt;/CODE&gt; and &lt;CODE&gt;Outdoor&lt;/CODE&gt; within a &lt;CODE&gt;&amp;lt;div&amp;gt;&lt;/CODE&gt; inside &lt;CODE&gt;&amp;lt;html&amp;gt;&lt;/CODE&gt; panel and set the CSS &lt;CODE&gt;&amp;lt;style&amp;gt;&lt;/CODE&gt; to &lt;CODE&gt;display:flex !important;&lt;/CODE&gt;. This way the images inside the div will not span across two separate lines.&lt;/P&gt;

&lt;P&gt;Alternatively You should also check out the following options as well:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt; &lt;A href="https://splunkbase.splunk.com/app/3119/"&gt;Status Indicator Custom Visualization&lt;/A&gt; which will allow you to display &lt;CODE&gt;Icon color and text&lt;/CODE&gt; as per your use case (PS: it uses &lt;A href="https://fontawesome.com/v4.7.0/icons/"&gt;font-awesome icons&lt;/A&gt;).&lt;BR /&gt;
&lt;STRONG&gt;2)&lt;/STRONG&gt; You can use separate &lt;CODE&gt;&amp;lt;panel&amp;gt;&lt;/CODE&gt; for each &lt;CODE&gt;&amp;lt;html&amp;gt;&lt;/CODE&gt; image and then remove the padding between them using CSS override to make them appear as single panel.&lt;BR /&gt;
&lt;STRONG&gt;3)&lt;/STRONG&gt; &lt;CODE&gt;Custom Decorations&lt;/CODE&gt; examples from the &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Examples&lt;/A&gt; app.&lt;/P&gt;

&lt;P&gt;Following is a run anywhere example (PS: I have used http links for the two icons so that it works for everyone with internet connection. You can replace with your own):&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6309iBB96470B2AA1EC3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;HTML Images in the same row&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          .image-title-single-row,
          .image-single-row{
             display:flex;
          }
        &amp;lt;/style&amp;gt;
        &amp;lt;div class="image-title-single-row"&amp;gt;
          &amp;lt;p style="padding-right:10px;width:50%;text-align:center"&amp;gt;Green&amp;lt;/p&amp;gt;
          &amp;lt;p style="width:50%;text-align:center"&amp;gt;Outdoor&amp;lt;/p&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="image-single-row"&amp;gt;
          &amp;lt;img style="height:250px;width:50%;padding-right:10px" src="https://cdn3.iconfinder.com/data/icons/flat-actions-icons-9/792/Tick_Mark_Dark-512.png" alt="ok"&amp;gt;&amp;lt;/img&amp;gt;
          &amp;lt;img style="height:250px;width:50%" src="https://www.iconspng.com/images/yellow-sun-icon/yellow-sun-icon.jpg" alt="out"&amp;gt;&amp;lt;/img&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Dec 2018 16:33:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380593#M24897</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-12-26T16:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you put two HTML images side by side in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380594#M24898</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;So I have to do the inline styling for each html? Is there a way to set the style for just a particular group of HTML images?? I have 3 groups of HTML images. They are not static. Different images will appear when &lt;BR /&gt;
the field.value changes. And I don't think tokens work on ? ( &lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 02:05:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380594#M24898</guid>
      <dc:creator>marvinlee93</dc:creator>
      <dc:date>2018-12-27T02:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you put two HTML images side by side in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380595#M24899</link>
      <description>&lt;P&gt;@marvinlee93 &lt;/P&gt;

&lt;P&gt;The default setting for html elements is &lt;CODE&gt;display: block&lt;/CODE&gt; and that for &lt;CODE&gt;&amp;lt;img&amp;gt;&lt;/CODE&gt; width is original size.  So both need to be overridden using CSS. Inline style for each &lt;CODE&gt;&amp;lt;img&amp;gt;&lt;/CODE&gt; is not required as you can add required class to each and apply CSS at one place. I have done this for &lt;CODE&gt;.image-title-single-row&lt;/CODE&gt; and &lt;CODE&gt;.image-single-row&lt;/CODE&gt; in the example. You can adopt this  approach of adding/removing classes to various sections as per your need.&lt;/P&gt;

&lt;P&gt;Tokens can work in CSS, provided &lt;CODE&gt;&amp;lt;style&amp;gt;&lt;/CODE&gt; is applied through dashboard &lt;CODE&gt;&amp;lt;html&amp;gt;&lt;/CODE&gt; panel. Additinally, you can keep style html panel hidden using depends attribute to a token which is never set. Refer to one of my older answers: &lt;A href="https://answers.splunk.com/answers/684166/how-do-you-make-a-table-that-reduces-in-height-whe.html"&gt;https://answers.splunk.com/answers/684166/how-do-you-make-a-table-that-reduces-in-height-whe.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Do up vote the answer/comments if it helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 03:32:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/380595#M24899</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-12-27T03:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do you put two HTML images side by side in a panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/644209#M52611</link>
      <description>&lt;P&gt;So, I want to display 2 visualization instead of image side by side in panel, how can I do this&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 06:45:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-put-two-HTML-images-side-by-side-in-a-panel/m-p/644209#M52611</guid>
      <dc:creator>Chaser</dc:creator>
      <dc:date>2023-05-23T06:45:27Z</dc:date>
    </item>
  </channel>
</rss>

