is it possible to scale a background image in css or html?? when i say scale I mean… lets says my background image was a 1280×1024 but if someone was viewing the web page at a resolution of 1024×768 the background would scale down to that size. is that possible?
@ray326Jul 29.2007 — #Of course it's really better to find a different kind of solution using a background image of a defined size because letting the browser resize the image to fit will guarantee in most cases a crummy looking image.
@WebJoelJul 31.2007 — #I much prefer a static-sized image, centered. And if OP wants it, -I have a javascript snippette that determines the client's current screen-width and translates this to re-size the image. I don't think it does this for 'backgrond-image' but if the image is opaque and light, some clever z-index -ing could make the content rise above the image..
If user has javascript turned off/or doesn't have it, -the 'centered, non-resizing is at least 'downward degradeable'.