AnsweredAssumed Answered

How to Get Div to Be Contained in a Map?

Question asked by sjerrysss on Sep 16, 2019
Latest reply on Sep 16, 2019 by afitz-esristaff

I have a div that I want to put inside the map, but either placing 'sidePanel' outside or inside 'viewDiv' don't work. I'm curious about is there any approach other than customizing a widget with TypeScript and SASS? To be specific, is it possible to do those widget tricks with generic HTML and CSS like I'm attempting?

 

my code :

Snippet

<style>
htmlbody,
#viewDiv {
padding0;
margin0;
height100%;
width100%;
}
#sidePanel  {
background-color:#f00;
height100px;
width100px;
}
</style>

Snippet
<div id="sidePanel"></div>
<div id="viewDiv" class="esri-widget"></div>

screenshot :

Outcomes