T
Terry
I'm working on a web page that consists primarily of an unordered list.
When the user mouses over any list item, a div appears immediately to
the right of that item, containing supplemental information about that
item.
Vertically, I'm positioning the div with its top slightly higher than
the list item, as determined by the list item's offsetTop value.
My problem: If a list item appears near the bottom of the browser
window, the div is too tall to fit in the window, and is partially
concealed. So, I need to determine whether the div will fit vertically
in the browser window, and if it won't, assign the div a top position
that will ensure that the entire div is visible. How do I do this???
Thanks!
When the user mouses over any list item, a div appears immediately to
the right of that item, containing supplemental information about that
item.
Vertically, I'm positioning the div with its top slightly higher than
the list item, as determined by the list item's offsetTop value.
My problem: If a list item appears near the bottom of the browser
window, the div is too tall to fit in the window, and is partially
concealed. So, I need to determine whether the div will fit vertically
in the browser window, and if it won't, assign the div a top position
that will ensure that the entire div is visible. How do I do this???
Thanks!