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

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -