Can I resize the background image using CSS?

I have a very nice background pic but I cannot crunch the size any more. I noticed that during the image manipulation a 1/4 size image looked great enlarged. So I figured I would actually make the image smaller and show it at twice the height and width. Can it be done using Cascading Style Sheets? OK, that's not possible, so how about a fixed image layer?

Public Comments

  1. As far as I can tell from my understanding of CSS and researching your question, you can only specify the offset position of a background image in CSS, whether it scrolls along with a page, and its source. There's no parameter to provide the dimensions. I see you're trying to keep the size of the image small, and would like the browser to scale it. But that doesn't seem possible.
  2. Javascript can be used to resize images to fit a screen, or load a images that is the correct size for the browser. Css isn't that powerful. http://www.webreference.com/dhtml/diner/bgresize/
Powered by Yahoo! Answers