ma*****@hotmail.com написав:
Hi
I have two layers contain two images (with different sizes), the second
layer is positioned exactly over the other one.
can I find a way to scroll both of them together (to keep them
positioned the way they were)?
Here the short sample of problem solution. Place the top layer into the
bottom layer with "position:relative" in style definition. Then place
bottom layer in the scrollable div ("overflow:auto").
Try, maybe it is that you looking for.
<html>
<body>
<div style="overflow:auto;width:300px;height:300px">
<div style="width:500px;height:500px;background-color:red">bottom
layer
<div
style="position:relative;left:80;top:70;width:100p x;height:50px;background-color:blue">top
layer</div>
</div>
</div>
</body>
</html>