KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to know if there is a way I can determine if a div is in the center of the screen. HTML: <div id="container"> <div class="box" id="box0"> text </div> <div class="box" id="box1"> text </div> ..... <div class="box" id="box100"> text </div> </div> Is there a way to determine when a div will be in the center of the visible screen, considering that the page is scrollable? So basically, when the user is scrolling down the page, the div that's in the middle of the visible screen should be selected. Thanks
Tags (comma-separated)
Save Edits
Cancel