View Full Version : need help backgrounds of iframes


abednego
08-28-2004, 05:53 PM
im makin a web site and i have a picture, i want that picture to be the background of my iframe and the words scroll over it. so basically the picture will just stay and only the words will scroll. i dont want this pic to be the background of my entire page. does anyone know what to do? if so pleease help.

My_Daily_Bread
08-28-2004, 06:49 PM
Just make the pic you want in the iframe the bg of the page inside the iframe. Then use css to make the bg watermark (see lissa's css pages)

XxBeaNxX
08-28-2004, 11:37 PM
If you want it to be the background of just one of the pages in you're iframe you can do what he said. However, if you want to put an image in the background of an iframe for all the pages (and you don't want to put the background image code on each page), you can do this:

Use a normal image code for your background and put the iframe over it with a transparent background. It would look something like this:

<img src="background.jpg" width="500" height="500">
<iframe name="iframe" src="page.htm" frameborder="0" width="500" height="500" style="FILTER: chroma(color=#FFFFFF)" allowtransparency="true" ></iframe>

Of course, change everything in bold to fit your website.

huneey_uberblue
09-02-2004, 09:57 AM
you need to make your pic the background of your page which you're trying to open in the iframe. then use css to "fix" it in place so it won't move.

<style type="text/css">
body
{ background-image: url(your background pic ex. pic.gif);
background-repeat: no-repeat;
background-attachment: fixed;}
</style>

put this in the page that you are opening in the iframe. Ü