diff --git a/HelloWorld.html b/HelloWorld.html index 203a218..cf4f11b 100644 --- a/HelloWorld.html +++ b/HelloWorld.html @@ -27,6 +27,14 @@ resizeString += "Inner Dimentions: " + window.innerWidth + "x" + window.innerHeight + "
"; resizeString += "Outer Dimentions: " + window.outerWidth + "x" + window.outerHeight; document.getElementById("testID").innerHTML = resizeString; + + //To reisize an element to take up the rest of the screen use this + /* + let mainContent = document.getElementById("mainContent"); + let footer = document.getElementById("mainFooter"); + let height = window.innerHeight - mainContent.offsetTop - footer.offsetHeight; + mainContent.style = "height: " + height + "px"; + */ } //This function demonstrates a method to change the number of digits a number displays when printed