function changesize(){ var updown = document.getElementById("updown") if (updown.innerHTML == "▲"){ document.getElementById("story-frame").style.top = "0%"; updown.innerHTML = "▼" document.getElementById("updown").style.fontSize = "20px"; document.getElementById("updown").style.paddingLeft = "48%"; document.getElementById("updown").style.marginRight= "-50%"; document.getElementById("updown").style.marginTop = "0px"; // document.getElementById("updown").style.backgroundColor = "lightgrey"; // document.getElementById("updown").style.height = "0px"; // document.getElementById("updown").style.paddingBottom = "30px"; } else if (updown.innerHTML == "▼"){ document.getElementById("story-frame").style.top = "50%"; updown.innerHTML = "▲" document.getElementById("updown").style.fontSize = "20px"; document.getElementById("updown").style.paddingLeft = "48%"; document.getElementById("updown").style.marginRight= "-50%"; // document.getElementById("updown").style.marginTop = "-65px"; // document.getElementById("updown").style.backgroundColor = "lightgrey"; // document.getElementById("updown").style.marginBottom = "5px"; // document.getElementById("updown").style.height = "auto"; // document.getElementById("updown").style.paddingBottom = "0px"; } }