Answers for "how to get window height css"

3

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language