mirror of
https://bitbucket.org/Mattrixwv/webtutorials.git
synced 2025-12-06 18:34:01 -05:00
Added note of function to make element fill rest of screen
This commit is contained in:
@@ -27,6 +27,14 @@
|
|||||||
resizeString += "Inner Dimentions: " + window.innerWidth + "x" + window.innerHeight + "<br>";
|
resizeString += "Inner Dimentions: " + window.innerWidth + "x" + window.innerHeight + "<br>";
|
||||||
resizeString += "Outer Dimentions: " + window.outerWidth + "x" + window.outerHeight;
|
resizeString += "Outer Dimentions: " + window.outerWidth + "x" + window.outerHeight;
|
||||||
document.getElementById("testID").innerHTML = resizeString;
|
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
|
//This function demonstrates a method to change the number of digits a number displays when printed
|
||||||
|
|||||||
Reference in New Issue
Block a user