On my page, I have the following code snippet:
<div style="max-width: 600px; overflow-x: scroll;">
<a href="PoolPanoramaBig.jpg" target="_blank">
<img src="PoolPanoramaBig.jpg" style=""/>
</a>
</div>
If the image exceeds 600px in width, users can scroll it left to reveal the right side. However, I want the default display to show the image fully scrolled to the left upon initial viewing.
I attempted using a float:left style on the image, but this removes the horizontal scrollbar functionality.
Any suggestions?
EDIT: To provide more clarity, check out this example page: Notice how you need to scroll to the right to see the complete image? My goal is for the image to automatically display in that fully scrolled position when the page first loads.
If achieving this requires JavaScript, I'm open to that approach and would appreciate some guidance. Otherwise, if CSS can handle it, that's where I'd prefer to begin troubleshooting.