I have a div with an image in it. The image is larger than the size of the view port. So I end up with scroll bars both vertically and horizontally. I'd like to just have the picture in the div and have the browser ignore whatever overflows without showing scroll bars.
I've tried setting overflow to hidden but that doesn't work for me.
This my html:
<div id="outerdiv">
<div id="innerdiv">
<img src="my_pic.jpg">
</div>
</div>
And this is my css:
#outerdiv {
overflow:hidden;
width: 100%;
height: 100%
}