<?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: I need to center a graphic element on the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-center-a-graphic-element-on-the-map/m-p/1266839#M80516</link>
    <description>&lt;P&gt;This was very helpful and got me on the right track. Thank you!&lt;/P&gt;&lt;P&gt;If you can make the width of the element to be centered a percentage, then the remainder can be split in half for the left margin. I'm using a custom container here for a slider bar.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;#sliderContainer {
  width: 50%;
}

.esri-ui-manual-container &amp;gt; div#sliderContainer.box.esri-component {
  left: 25%;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Mar 2023 15:49:49 GMT</pubDate>
    <dc:creator>CherieBryant</dc:creator>
    <dc:date>2023-03-11T15:49:49Z</dc:date>
    <item>
      <title>I need to center a graphic element on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-center-a-graphic-element-on-the-map/m-p/1190420#M77868</link>
      <description>&lt;P&gt;I want to position the search engine in the middle of the map, I have only found the positions of :&amp;nbsp;"bottom-leading"|"bottom-left"|"bottom-right"|"bottom-trailing"|"top-leading"|"top-left"|"top-right"|"top-trailing"|"manual"&lt;/P&gt;&lt;P&gt;i want this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stivenstiven_0-1657207480737.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45446iF0321E5281D4CDF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stivenstiven_0-1657207480737.png" alt="stivenstiven_0-1657207480737.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 15:49:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-center-a-graphic-element-on-the-map/m-p/1190420#M77868</guid>
      <dc:creator>stiven</dc:creator>
      <dc:date>2022-07-07T15:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: I need to center a graphic element on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-center-a-graphic-element-on-the-map/m-p/1190516#M77871</link>
      <description>&lt;P&gt;You can use the manual option then position the search component with CSS. This example isn't perfect but it'll show you the general steps&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/kellyhutchins/pen/poLyJwK?editors=100" target="_blank"&gt;https://codepen.io/kellyhutchins/pen/poLyJwK?editors=100&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the css that is used in the sample:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;      .esri-ui-manual-container&amp;gt;.esri-component.esri-search {
        position: absolute;
        left: calc(50vw - 120px);
        top: 20px;
    }&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://codepen.io/kellyhutchins/pen/poLyJwK?editors=100" target="_blank"&gt;https://codepen.io/kellyhutchins/pen/poLyJwK?editors=100&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 18:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-center-a-graphic-element-on-the-map/m-p/1190516#M77871</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2022-07-07T18:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: I need to center a graphic element on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-center-a-graphic-element-on-the-map/m-p/1190706#M77874</link>
      <description>&lt;P&gt;Thank you very much, that worked&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 00:53:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-center-a-graphic-element-on-the-map/m-p/1190706#M77874</guid>
      <dc:creator>stiven</dc:creator>
      <dc:date>2022-07-08T00:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: I need to center a graphic element on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-center-a-graphic-element-on-the-map/m-p/1266839#M80516</link>
      <description>&lt;P&gt;This was very helpful and got me on the right track. Thank you!&lt;/P&gt;&lt;P&gt;If you can make the width of the element to be centered a percentage, then the remainder can be split in half for the left margin. I'm using a custom container here for a slider bar.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;#sliderContainer {
  width: 50%;
}

.esri-ui-manual-container &amp;gt; div#sliderContainer.box.esri-component {
  left: 25%;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 15:49:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-center-a-graphic-element-on-the-map/m-p/1266839#M80516</guid>
      <dc:creator>CherieBryant</dc:creator>
      <dc:date>2023-03-11T15:49:49Z</dc:date>
    </item>
  </channel>
</rss>

