PDA

View Full Version : Background help needed


jamiew23
05-24-2009, 11:29 PM
I'm new to Dreamweaver but really want to learn how to use it well.

What i want to do is add this image here: http://www.ftw-design.com/images/wallpaper/1024x768/grey-garden.jpg

to the bottom of my webpage so that it acts as a background and changes shape to fit the screen. I want to add the image to the bottom of the page and then have the rest of the page grey.

So really i want to use a background image and also a background colour at the same time.

How would i do this? I know i could add the image into a table but that would mean that it wouldn't adjust itself to fit the screen each time as it would stay the same size as the table.

just in case you don't know what i mean i've provided a picture here: http://img20.imageshack.us/img20/9125/backgroundsah.jpg

thanks :)

DWcourse
05-25-2009, 01:53 AM
This CSS in the body style would position your background at the bottom of the sreen but not resize it.

background: #CCC url(bgPicture.jpg) no-repeat fixed bottom;

(Use your own color and image of course.)

You can't set an background image to resize. You could accomplish it other ways but the quality of a resized image is going to be problematic.

jamiew23
05-25-2009, 09:57 AM
where do i put the code too? Sorry i'm new to all this

Corrosive
05-25-2009, 10:06 AM
where do i put the code too? Sorry i'm new to all this

Your code needs to go in a separate style sheet which is then linked into each of your pages. I think you need to do a bit more reading before diving head long into this. Start here...

http://w3schools.com/