H
Henrik Bechmann
All,
I'm trying to spoof Google's vertical tabs in a vertical menu
structured with nested UL/LI elements.
To do this, I need to find out where the anchor in the LI is, and then
create an absolute positioned div to bridge the space between the menu
and the content page.
This works with one level of LI's. However, with more than one, the
nested elements have offsetHeight and clientTop (among others) that
are set to 0 (zero). (And even more peculiar - using the FF debugger,
the embedded stacked anchor strings have apparently been converted to
a single string with embedded line breaks).
Anyway, I don't get it.
The question: how do I get positioning information for nested UL/LI
elements (in both FF and IE6&7).
Thanks!
- Henrik
I'm trying to spoof Google's vertical tabs in a vertical menu
structured with nested UL/LI elements.
To do this, I need to find out where the anchor in the LI is, and then
create an absolute positioned div to bridge the space between the menu
and the content page.
This works with one level of LI's. However, with more than one, the
nested elements have offsetHeight and clientTop (among others) that
are set to 0 (zero). (And even more peculiar - using the FF debugger,
the embedded stacked anchor strings have apparently been converted to
a single string with embedded line breaks).
Anyway, I don't get it.
The question: how do I get positioning information for nested UL/LI
elements (in both FF and IE6&7).
Thanks!
- Henrik