[help] How To Make A Image In Dreamwever Sretch

okay, well once agian I ran into problems with a site. I'm doing a site for a firend. he wanted it in .php, I did it and the only issue now is that if someone looks at the site in 1024x768 the site is too big and you'll need to scroll horisontilly in oreder to see the whole thing. Now, I want to know is how exactly can I make the site like these forums.

What I mean is that I want to know how can I make the site so when someone resizes thier brwoser window the some images horisontillt strech to fit the screen. I hope I'm making sence here. I'm kinnda slow.....today. :( plase help..

Oh and if it helps any I use DreamWever so maybe there is a easy way of doing this. I'm Very new to .php so .......don't diss me please. All my other sites were in html and I'm trying to get with the program and am switching like others. -_-

#165718

The php code shouldn't affect your layout. You just make your scripts output the html as would a normal page. Basically, I'd suggest making the body width 100% of the browser window via css positioning. That should let the site resize with the window

#165739

True but what if someone with a resoultion of 1024x768 goes to my site. They will have to suffer scrolling thru the page verically and horisontially? I think there is a way to make the images shrink and sretch, rather thru Java or smomething, cause people will get annoided.

Any way, thanks... if all else fails then a I'll use your suggestion. ;)

#165744

I searched online, and still didn't find anything usefull... :cry:

#165768

What you do is create the images that you want resized (eg. like the image that's behind the text on the titlebars on these forums) and then make it so that the images are streched by:

HTML (for images that aren't used for a background):

HTML
<img src="imagename.imagetype" width=100%\> or <img src="imagename.imagetype" height=100%\>

CSS (for background images): Just insert the image as a background. This also can be done for Table backgrounds (just by using the Table properties tool in dreamweaver).

#165856

If you want it like this site, why don't you take a peek at the source for it?

#165882

on this site, i am sure you will find - a table (or css equivelent) sized to width 100% or close to this. Then an image in a column at the start (subcaption_left.gif) and one at the end - subcaption_right.gif. In the middle column is an image that can be tiled - set as the background of the cell (caption_mid_bg.gif).

#165892