<?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 Having some trouble with a custom widget and CSS positioning in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/having-some-trouble-with-a-custom-widget-and-css/m-p/1422489#M23484</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having some issues with the positioning of a custom widget. I need it to be a "splash screen" widget so it forces the user to enter an address. I'm having a couple of issues. The widget is positioned perfectly if I leave the setting "inpanel": true, but I do not want the window in the back to be visible. Screenshot below. if InPanel:true. This is exactly where I want the placement of the widget, but I do not want the other panel on the left visible.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonMoriSegra_0-1715263756347.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103589i0B8842DEAE6D1028/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonMoriSegra_0-1715263756347.png" alt="JonMoriSegra_0-1715263756347.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I put the setting on InPanel:False, This is where the widget is showing, it is almost as if it is ignoring the CSS.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonMoriSegra_1-1715263894570.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103590iBFE2E3C577C86375/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonMoriSegra_1-1715263894570.png" alt="JonMoriSegra_1-1715263894570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my CSS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;.jimu-widget-customgeocode {
    position: fixed; /* Fixed positioning relative to the viewport */
    top: 50%; /* Position the top edge of the element at the center of the viewport */
    left: 50%; /* Position the left edge of the element at the center of the viewport */
    transform: translate(-50%, -50%); /* Shift the element back by half its own width and height to center it exactly */
    width: 50vw; /* Set the width to 50% of the viewport width */
    height: 50vh; /* Set the height to 50% of the viewport height */
    display: flex; /* Ensures flexbox layout */
    flex-direction: column; /* Stacks children vertically */
    justify-content: center; /* Centers children vertically */
    align-items: center; /* Centers children horizontally */
    z-index: 1000; /* Ensure it's on top of other elements */
    box-sizing: border-box; /* Include padding and borders in the element's size */
    padding: 10px; /* Padding around the content */
    border: 1px solid #ccc; /* Border for visibility */
    background-color: #fff; /* Background color */
}

.jimu-widget-customgeocode .search-container {
    width: 80%; /* Adjust width as necessary, can be 100% if needed */
    margin-bottom: 20px; /* Space between this container and anything below it */
    display: flex;
    justify-content: center; /* This will center the children within the container */
    align-items: center;
}

.jimu-widget-customgeocode .search-input {
    flex-grow: 1; /* Allows the input to grow and fill space */
    margin-right: 10px; /* Space between input and button */
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.jimu-widget-customgeocode .search-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 14:21:07 GMT</pubDate>
    <dc:creator>JonMoriSegra</dc:creator>
    <dc:date>2024-05-09T14:21:07Z</dc:date>
    <item>
      <title>Having some trouble with a custom widget and CSS positioning</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/having-some-trouble-with-a-custom-widget-and-css/m-p/1422489#M23484</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having some issues with the positioning of a custom widget. I need it to be a "splash screen" widget so it forces the user to enter an address. I'm having a couple of issues. The widget is positioned perfectly if I leave the setting "inpanel": true, but I do not want the window in the back to be visible. Screenshot below. if InPanel:true. This is exactly where I want the placement of the widget, but I do not want the other panel on the left visible.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonMoriSegra_0-1715263756347.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103589i0B8842DEAE6D1028/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonMoriSegra_0-1715263756347.png" alt="JonMoriSegra_0-1715263756347.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I put the setting on InPanel:False, This is where the widget is showing, it is almost as if it is ignoring the CSS.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonMoriSegra_1-1715263894570.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/103590iBFE2E3C577C86375/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonMoriSegra_1-1715263894570.png" alt="JonMoriSegra_1-1715263894570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my CSS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;.jimu-widget-customgeocode {
    position: fixed; /* Fixed positioning relative to the viewport */
    top: 50%; /* Position the top edge of the element at the center of the viewport */
    left: 50%; /* Position the left edge of the element at the center of the viewport */
    transform: translate(-50%, -50%); /* Shift the element back by half its own width and height to center it exactly */
    width: 50vw; /* Set the width to 50% of the viewport width */
    height: 50vh; /* Set the height to 50% of the viewport height */
    display: flex; /* Ensures flexbox layout */
    flex-direction: column; /* Stacks children vertically */
    justify-content: center; /* Centers children vertically */
    align-items: center; /* Centers children horizontally */
    z-index: 1000; /* Ensure it's on top of other elements */
    box-sizing: border-box; /* Include padding and borders in the element's size */
    padding: 10px; /* Padding around the content */
    border: 1px solid #ccc; /* Border for visibility */
    background-color: #fff; /* Background color */
}

.jimu-widget-customgeocode .search-container {
    width: 80%; /* Adjust width as necessary, can be 100% if needed */
    margin-bottom: 20px; /* Space between this container and anything below it */
    display: flex;
    justify-content: center; /* This will center the children within the container */
    align-items: center;
}

.jimu-widget-customgeocode .search-input {
    flex-grow: 1; /* Allows the input to grow and fill space */
    margin-right: 10px; /* Space between input and button */
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.jimu-widget-customgeocode .search-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 14:21:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/having-some-trouble-with-a-custom-widget-and-css/m-p/1422489#M23484</guid>
      <dc:creator>JonMoriSegra</dc:creator>
      <dc:date>2024-05-09T14:21:07Z</dc:date>
    </item>
  </channel>
</rss>

