View Full Version : Using anchor links to move to the top of the row in scrollable divs

Jan 25th, 2007, 10:32 AM

I have a scrollable div where the header is freezed and the remaining data scrolls on the basis of offset calculated on the onscroll event such that the header remains at the same location and only the data moves.

Now i need to provide an anchor link from another table within the same page which takes me to a particular row within the scrollable div but on clicking the href link, the particular row comes at the position of the header and hence that row hides behind the header.

Code snippet
the scrollable div top attribute is calculated with the following CSS expression

can anyone tell me as to how this can be acheived

Gaurav Sharma