As a better option, just use a very highly optimized, large background image that looks pleasant even when a portion of the image is cut off for smaller displays. (This is how most sites with large background images handle it.)
Best of luck!
bjrn, on Jun 19 2005, 07:00 AM, said:
Background images are just like normal images in HTML documents, you can't set them to resize to whatever the user has.
You could use some PHP GD functions with some browser sniffing to resize the image before sending it to the client. What you'd have to do is this:
You could use some PHP GD functions with some browser sniffing to resize the image before sending it to the client. What you'd have to do is this:
- When the user comes to your page, check what resolution they are using.
- Have a PHP function that resizes your background image to the resolution
- Set the generated image as background image
- Send all data to the user.














