View Full Version : Can you set bkgrnd image in frame?
dheit
03-05-2002, 08:14 AM
I have a three-framed site; top nav bar; left menu bar; and body content. Is there a way to have one background image occupy the space behind all three? Since the frameset tag replaced the BODY tag, I can't figure out if this can be done.
Thanks!
scoutt
03-05-2002, 08:33 AM
uhhh the frame tag didn't replace the body. when the frames load it will load the page inside that frame. in that page is a body.
dheit
03-05-2002, 08:40 AM
Index.html has had its BODY tag replaced with FRAME tags. If you try and put a BODY tag in that page, the frames are disabled. According to HTML reference, this is the appropriate functionality for frames.
The other three pages, of course, still have BODY tags.
Take a look at this: http://www.raba.org/test/index.html. I want the picture at the top to be a background image that takes up the whole screen. That page is made up of three frames.
scoutt
03-05-2002, 08:43 AM
Originally posted by dheit
The other three pages, of course, still have BODY tags.
there you have it. the frame is just a container for the page that will reside in it. if you load a frame and not having any html load in it, what do you think will happen. nothing, because there is no page loaded in that frame.
so the other 3 pages that have body tags in it, will house teh background picture.
dheit
03-05-2002, 08:59 AM
We're not understanding one another. If I put the background image in the top frame, it only shows up in that frame. I want it to be behind all three frames. One picture that spans all three frames.
Sorry if I'm not communicating this properly.
Here's the content of index.html:
<FRAMESET ROWS="165,*">
<FRAME NAME="Top" scrolling="no" frameborder="0" SRC="top.html" TITLE="Menu">
<FRAMESET COLS="25%, *">
<FRAME NAME="Left" frameborder="0" scrolling="auto" SRC="left.html" TITLE="Content">
<FRAME NAME="Body" frameborder="0" scrolling="auto" SRC="body.html" TITLE="Content">
</frameset>
<NOFRAMES>
<BODY>
This site requires a minimum of Netscape 4.0 or Internet Explorer 4.0.
</BODY>
</NOFRAMES>
</FRAMESET>
I want the picture to span and be behind top.html, left.html, and body.html. Putting it in the body tag of any one of these three causes it to only appear in that frame.
scoutt
03-05-2002, 09:10 AM
now that I understand what you want to do. you didn't say anything to the fact that you wanted the same picture to span all 3 frames at the sametime. that my friend, I don't think is possible. unless somebody else has an idea.
scoutt
03-05-2002, 09:14 AM
but thinking about it, you can dice that image up into 3 sections and make the top and left and body sections appear like it is one picture. but if any of the frames scroll it will mess up the picture.
Dr. Web
03-05-2002, 01:19 PM
or put all three frames inside a master frame, and make the master frame contain the background pic.
but thats messy developing.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.