Scrolling a DIV inside a DIV container with Javascript?

Add position:relative to SVG_container and remove the JavaScript I hope this is what you mean.

Add position:relative to . SVG_container, and remove the JavaScript. I hope this is what you mean.

You are just brilliant! Thank you – pasta May 26 at 15:28.

I have a DIV container in which I have a SVG document (bigger than DIV). In this same container I have another DIV (lets call it DIV#2) that moves over my SVG, to help people locate some feature. When I scroll the container DIV I would like DIV#2 to stay anchored on the same position on my SVG, so as to be coherent my the new position of the selected feature (cf Rect_Follow() function below).

Can someone help me troubleshooting that without the use of jQuery?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions