I have the following div container in which an image is located.
<div class=”right”>
<img src=”../../assets/maps/0802_map150.jpg” />
</div>
The CSS for the div is:
div.right
{
position:absolute;
top: 127px;
left: 359px;
height: 440px;
width: 388px;
margin: 0px 10px 0px 0px;
padding: 0px 0px 0px 0px;
background-color:#FFFFFF;
overflow:auto;
}
The image is much larger than the container and with overflow set to auto the scroll bars are shown. That all works great.
The image is a map with a trail marked on it. I would like to control the initial location of the image in the container so that the start of the trail is in the center of the container. IS THERE A PROPERTY THAT WILL ALLOW ME TO SET THE POSITION OF THE IMAGE IN THE CONTAINER WHEN THE PAGE IS FIRST VIEWED AND WILL STILL ALLOW ME TO USE THE SCROLL BARS TO MOVE THE IMAGE AFTERWARDS?
Thanks for any help you can supply me.
Marcus