html code to make a background image stretch-to-fit?

Public Comments

  1. Background images can not be scaled. The usual work arounds are to have very large background images, or to have an image that fades smoothly to a solid background colour. A nasty hack is to use absolute positioning to place a content image behind the rest of the content, and stretch that - but this results is low quality HTML, and badly scaled backgrounds, so is not recommended.
  2. <html> <head> <title>your title</title> </head> <body background="filename.jpg" >
Powered by Yahoo! Answers