Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dreamweaver background

Status
Not open for further replies.

gcssys

Technical User
Jan 21, 2003
6
CA
Is there a way to make the CSS background stretch rather than repeat or no repeat?
 
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!! [hammer]
 
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.

Hope that's of some help
 
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..
 
this is possible one of the ugliest things anyone can do to their webpage

manipulating images in a browser!

WHy do it?
Do you not want people to come back to your site? [Hammer]
Nike Failed Slogans -- "Just Don't Do It!"
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top