html - How to know the height the space left on a browser by the menus, bookmarks and tabs? -
i want make page (html + css) fits space left on browser without horizontal , vertical scrollbars.
now readind question on web browser and, probably, can see horizontal scrollbar. want use space without using horizontal , vertical scrollbars.
i think looking window.innerwidth , window.innerheight , friends.
check out this great table on quirksmode.org overview on variables supported browser.
edit: pure css
in css have width: 100% , height: 100%. if work scenario, use them. avoid scroll bars, can use overflow: hidden on body, careful because prevents scrolling completely. depends on want do.
Comments
Post a Comment