I have a large number of images on a page positioned using float:left; when you click on one of the images a javascript function loads a larger image in its place and all the images after this are shuffled down.
My problem is that when the user clicks and image to make it bigger, quite often this forces the image onto the next line and sometimes this means pushing it off the page.
What Im trying to do is put together a function that smoothly auto scrolls so this enlarged image is fully in view. I’ve experimented with trying to use anchor points but I get the feeling this isn’t the best way to go about things. Has anyone got any pointers or code that might help me achieve this.
Thanks in advanced