I have a dropdown menu with 3 dropdowns. For some reasons, the button goes below the Legend Layers. How can I move the button to the top left side? I have included the <body> tag below:
<body class="claro" >
<div id="content" data-dojo-type="dijit/layout/BorderContainer"
Β Β Β Β data-dojo-props="design:'headline', gutters:true"
Β Β Β Β style="width: 100%; height: 100%; margin: 0;">
Β Β Β <div id="rightPane"
Β Β Β Β Β Β Β Β data-dojo-type="dijit/layout/ContentPane"
Β Β Β Β Β Β Β Β data-dojo-props="region:'right'">
Β Β Β Β Β Β Β <div data-dojo-type="dijit/layout/AccordionContainer">
Β Β Β Β Β Β Β Β Β Β Β <div data-dojo-type="dijit/layout/ContentPane" id="legendPane"
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β data-dojo-props="title:'Legend', selected:true">
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β <div id="legendDiv"></div>
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β <div class="dropdown">
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β <button onclick="myFunction()" class="dropbtn">Editor</button>
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β <div id="myDropdown" class="dropdown-content">
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β <a href="edit_disabled.html" target="iframe_main">Disabled</a>
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β <a href="#">Attributed Only</a>
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β <a href="#">Full Editing</a>
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β </div>
Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β </div>
Β Β Β Β Β Β Β Β Β Β Β </div>
Β Β Β Β Β Β Β </div>
Β Β Β </div>
Β Β Β
Β Β Β <div id="map"
Β Β Β Β Β Β Β Β data-dojo-type="dijit/layout/ContentPane"
Β Β Β Β Β Β Β Β data-dojo-props="region:'center'"
Β Β Β Β Β Β Β Β style="overflow:hidden;">
Β Β Β </div>
</div>
CSS for the dropdown button
.dropbtn {
Β Β Β background-color: #4CAF50;
Β Β Β color: white;
Β Β Β padding: 16px;
Β Β Β font-size: 16px;
Β Β Β border: none;
Β Β Β cursor: pointer;
}
.dropbtn:hover, .dropbtn:focus {
Β Β Β background-color: #3e8e41;
}
.dropdown {
Β Β Β position: relative;
Β Β Β display: inline-block;
}
.dropdown-content {
Β Β Β display: none;
Β Β Β position: absolute;
Β Β Β background-color: #f9f9f9;
Β Β Β min-width: 360px;
Β Β Β overflow: auto;
Β Β Β box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.dropdown-content a {
Β Β Β color: black;
Β Β Β padding: 12px 16px;
Β Β Β text-decoration: none;
Β Β Β display: block;
}
.dropdown a:hover {background-color: #f1f1f1}
.show {display:block;}