Hi all.
I'm trying to develop a header area which expands past the usual 960px wide container, without using a background image, my reason for this is because an <img>
tag would work better in my case.
My problem is, if i place my image in the container, such as this code example:
<style>
#container {
width: 960px;
margin: 0 auto;
}
</style>
<div id="container">
<img src="myimage.jpg" alt="my image" />
</div>
I want to be able to take this image an center it, across the page, expanding past its container to the end of the viewport, without scrollbars being added, assume the size of the image remains at a constant 1280px wide, but the height varies.
I've been trying this morning, but i don't think it can be done without setting overflow:hidden on the body tag, which is bad because i'd like it t obe able to scroll if the window is smaller than the container.
I hope you guys can help :)