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:
- you can use fixed height modal window , change media query different devices.
you can change javascript getting window height after firing resize event of window object:
window.addeventlistener('resize', function (e) { // resize here. });
read how use height in percentage , set around 70-80%.
Comments
Post a Comment