Forum Moderators: mack
Client wants a wide, horizontal image to span the entire width of the page -- at the top, sort of like a banner.
His users will be viewing at a variety of screen resolutions, including 800x600. Therefore, I assume the image width should probably be slightly under 800px so that it fits in the window (without horizontal scrolling) for the 800x600 folks.
BUT at a higher resolution, the image obviously will not span the entire page if it's barely 800px wide.
How would a request like that be handled?
Many thanks,
Mid
#banner {
background-color: #ffffff;
background-image: url('http://domain.com/image.jpg');
background-position: center;
height: 130px;
margin-bottom: 20px;
padding: 0px;
}
The image was a panorama, so it didn't much matter that some sites would only see the middle 800 pixels. And since it was in the background layer, it didn't stretch out the site at all width-wise like putting it in a table would do.
You'd run into problems if someone viewed it from a screen larger than 1400x1050 resolution though.