|
womble -> RE: CSS Differences Between Firefox and IE6 (1/19/2007 18:38:36)
|
It's possible to detect screen size using Javascript (though obviously that only works if your visitor has JSS enabled). This was one of the many scripts I found for detecting screen size - theoretically I suppose it should be possible to adapt it to use a different image URL dependent on the screen res, but that would require some thinking about (and I don't do thinking late at night [:D]). Your other option would be to use an image that's as large as you expect your highest screen res to be (or maybe smaller but say set a black background behind the image so you don't get a big white obvious gap), stick the whole page in a container <div>, and set the style for that image to be overflow: hidden. I'm currently working on a redesign of my personal site, which at the moment is a fixed width. For the new design I wanted to make it fluid, but keep the same header image. I've ended up resizing the background image for the header to make it around 1250px wide so that on wide screens you get the full width of it. On smaller screens though the right of the image isn't visible because of the overflow: hidden - it means that at smaller sizes you lose some of the image on the right, so you'd need to make sure nothing vital was on the far right of the image, but that might be an option for you.
|
|
|
|