javascript - div resize according to browser window in height -


http://boosterdomains.com/svoge/index_register_2.html hello friends, struggling 1 problem. click in menu top right button, yellow one. open modal window. fine. if clients window/browser horizontally half , uses notebook without scroll? unable register. questions is, how make: modal window automatically resize vertically browser window resizes. want run away scrolling. how make it?

currently can suggest several options:

  1. you can use fixed height modal window , change media query different devices.
  2. you can change javascript getting window height after firing resize event of window object:

    window.addeventlistener('resize', function (e) { // resize here. }); 
  3. read how use height in percentage , set around 70-80%.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -