faqts : Computers : Internet : Web : HTML : Frames

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

16 of 24 people (67%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

Can I add a background (image or color) to an empty frame so, that a picture can be loaded over it?

May 23rd, 2001 05:30
Ben Gordon, Bart Hoeksel,


A frame doesn't have a background attribute of it's own but instead uses 
the background of the source page.  So "Can I add a background (image or 
color) to an empty frame so, that a picture can be loaded over it?"  you 
should just create an HTML page with the background color you want and 
the image you want on that background color, something like
<html>
<head>
<title>header page</title>
</head>
<body bgcolor="green">
<img src="your_image.gif" alt="My Cool Image">
</body>
</html>
then save this file as page1.htm or whatever then in your frame set you 
just reference the file like 
<FRAME SRC="page1.htm">
just ensure that the name of the file is the same as what is placed in 
the frame src.. 
I am sure I have done a poor job of explaining this as I am in a hurry 
(sorry) so if you need any more assistance email me and I will help you 
caislanders@netscape.net