One function aligns content to the left while the other doesn't align it to the right
function openNavLeft() {
document.getElementById("mySidenavLeft").style.width = "100vw";
document.getElementById("main").style.marginLeft = "100vw";
}
function openNavRight() {
document.getElementById("mySidenavRight").style.width = "100vw";
document.getElementById("main").style.marginRight = "100vw";
}
I'm wondering why these functions are not working as expected. What should I change?