How to check which div is visible while scrolling?

Getting the height of the browser for div.?

  • I'm trying to work around the adverts on Tripod so I'd like to know how to determine the height of the browser and pass it to the height property of a div tag. I intend to subtract the height of the adverts so that I can fit the div to the remaining space and have scrolling content. Thanks.

  • Answer:

    Really has nothing to do with the browser, but with screen resolution. The scroll bar may appear different on different size monitors. Make it 600px height to play it safe. Also depends on how many toolbars you have installed on your browser also will lower content.

JC at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.