Page Area Same as Screen and Resolution RRS feed

  • Question

  • User-2027411970 posted

    Hello All.

    I have design a web app with master page.

    I want to make that page height same as the screen height - viewport.

    A div will be there after mebu bar and all the child pages data will load into that DIV.

    How to achieve div and page height and width as per screen height and width with resolution.

    I dont want too much scroll bars in web browser.

    Please help.


    Wednesday, May 5, 2010 8:15 AM


  • User-1645128838 posted

    in javascripts set that div height as

    document.getElementById("divID").style.height = document.body.clientHeight + "px"

    document.getElementById("divID").style.width= document.body.clientWidth + "px"

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 5, 2010 8:44 AM