Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9185987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:24:45+00:00 2026-06-17T19:24:45+00:00

I have a full screen web application that should never scroll, so I set:

  • 0

I have a full screen web application that should never scroll, so I set:

$("body").css("overflow", "hidden");

However, when I add a resize listener:

$(window).resize(function(){
    console.log("Inner height: " + $(window).innerHeight());
    console.log("Height: " + $(window).height());
    console.log("Document: " + $(document).height());
    console.log("Body: " + $("body").height());
});

The height is reported correctly when I make the window taller but it’s incorrect when I make it smaller. In fact, the window height (through any of those variables) only increases (correctly if I make it bigger, and a little bit if I make it smaller).

The content, in case it’s relevant, is an html <video> element that takes the whole window space on ready.

I have read that height() won’t work in overflow: hidden, but I couldn’t get a reason why not. Also, how on earth do I get the correct height? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:24:46+00:00Added an answer on June 17, 2026 at 7:24 pm

    you may try setting

    html,body {
        height: 100%;
        width: 100%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a full screen ( html, body {height: 100%} ) web application and
I'm developing a full-screen web app for an iPad that will have a series
I have to create a web page which can be set to full screen(I
I have an app that switches between full screen and normal screen for a
I have a Silverlight application running full screen. Is there a way i can
I have a video view that is full screen and would like to trigger
I have a button that cause an image to display the image full screen
I'm trying to set the full screen mode on my iPhone Web App, I
Running a web-based app that when full-screen maximizes real-estate for best usage for this
Question I have video player chrome buttons designed with HTML/CSS. The full screen button

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.