I don't know, but you can simply make a bigger image to fit in the b/g. I tend to make b/g images to fit the biggest browser setting available. Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
Why not just simple make the bg bigger by manipulating it in photoshop?? Its quite easy...
1) Open up image in PS
2) Image -> Image Size
3) Define the new width and height (but make sure the "constraint size" checkbox is checked)
4) Resave image and your done... Forget the Nobel Peace prize, I just want to take over the world!!
Maybe I wan't clear... I want the image to stretch or shrink with different window sizes. So if one person has 800x600 and another has 1024x768 they see the same image not a cropped off version or borders around a smaller image.
There is a Dreamweaver extension that does this, however I really can't remember where it is. It's called something like "background that fit" Try
I think that's where I got it from in the past. You may even be able to find it at the Macromedia site. If I remember rightly though it was kinda jerky when resizing the window, might have been improved now though.
I think it's possible with Java too, but have no idea where to look for that. Try a search at Dynamicdrive.com or Google.
if you have access to PHP and GD you could probably resize the image before it displays based on the resolution of the browser that is accessing the page.
or you could make three or four different sized b/g images, and using javascript check which size browser the viewer is using and load the b/g image accordingly. Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
I have to agree with deecee, when I was attempting to get my background to fit to users screen resolutions the background loaded kinda jerkily, there was another problem with it also something to do with scrolling. If I remember rightly if the page was bigger than the users screen, anything that the visitor had to scroll to view did not have a background.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.