Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backgrounds in multiple frames?

Status
Not open for further replies.

PassedOut

Technical User
Feb 6, 2003
6
CA
I am building a website that has 6 frames. We are loading multiple htm files one at a time into the centre frame. Is it possible to have the same background without adding it to each htm file.Hence i am almost finished my site and there is too much white in the background so I want to make the background for the whole site one colour.
 
Hello PassedOut! :)
Unfortunately frames do "not know" about the background colors. You could and should setup your main (index.html) to have a background but in reality each page gets loaded into a frame...that loaded Page (not the frame holding page) has to have its properties of color.
So yes..the hard way..change the background of each page!!!

Now there is a way to change all backgrounds in all the pages at ones... :) BUT BUT make sure you have a copy of your pages before you start:

============[ 1 way ]=================================
---------------------------------------
-Open Site Files (F8)
-Edit-->Find and repleacce (Ctrl+F)
=[ Find in: Entire Site ..or Folder] you reason it
=[ Search For: Source Code: <body> ]
=[Repleace with: <body bgcolor=&quot;#FFFFFF&quot;>](#whitecolor )
----------------------------------------------

basically you are looking for the &quot;body&quot; tag and adding a bit more (background color) to it!

This works just fine IF you know for sure that all the pages are designed with the same structure. If you make a mistake the whole site is effected....

The SAFE way of doing ( but takes time) is opening each page manually and:

===============[ 2nd way ]=============================
-----------------------------------
-Modify --->Page Properties(Ctrl+J)
- select your color /or image for a bacground
------------------------------------

so, like I said, I would go for the 1st way AFTER YOU MAKE A COPY of your files and see if it works! Check your pages and If you are happy you are done!
if you don't trust the &quot;auto-repleace-thing&quot; then take your time and do the 2nd way suggested!
speed vs. safe way
good luck :)
p.s. email notification is on if u need more help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top