Answers for "height window with js"

CSS
6

how to get the height of window in javascript

//get screen height of the device by using
window.innerHeight
//get screen width of the device by using
window.innerWidth
Posted by: Guest on July-02-2020
0

css window height

.left {
  height: 100vh;
  width: 50%;
  background-color: grey;
  float: left;
}

.right {
  height: 100vh;
  width: 50%;
  background-color: red;
  float: right;
}
Posted by: Guest on April-18-2020

Browse Popular Code Answers by Language