I’m trying to change the position of an element with some simple javascript. This isn’t working and I’ve no idea what I’ve got wrong or if what I expect is not possible. This doesn’t need to be pretty, it’s for internal use only.COT
<div id="container">
<div id="maps">
<div class="frida">CONTENT</div>
<div class="dolores">CONTENT</div>
</div>
<a href="" onclick = document.getElementById("maps").style.left = "0"; >FRIDA</a>
<a href="" onclick = document.getElementById("maps").style.left = "-100vw"; >DOLORES</a>
</div>