Re: Centering and Publishing Page

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Here are some alternative directions for using Replace in Files.

When you "Publish to the Web" direct the output (the index.htm file and the
index_files folder if you are using the subfolder option) to a folder on
your computer where you can find it. Each of your *.htm files requires
adding a centering code after the existing </head> code.

Download and install the free "Replace In Files" program:
http://www.emurasoft.com/index.htm

Open "Replace in Files". The four boxes in the "Replace in Files" program
require the following information:

Find: </head>

Replace with: </head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>
(Note: the code string may wrap in this message, but it is one line. Also
change the width to the pixel width of your web pages.)

File Types: *.htm

In Folder: Use the ... button to browse to the folder on your computer where
you saved your index.htm (home page) and the index_files folder which
contains the other pages in your site.

Assuming that you are using a subfolder, check the box at the bottom
"Replace in Subfolders". (This is the step you may have missed.)

Click "Replace All", and you should get a "Finished" dialog that will
confirm the replaced strings of code for each *.htm file/page in your web
files.

You will have to run Replace in Files each time you modify your Pub file and
produce new web files. However, once the options in Replace in Files are
filled out and the "Replace all" is selected, the entries are retained for
the next time you use the program.

DavidF

"Gypsey" <Gypsey@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:97F4DD0A-1F38-452A-87CB-5E9A8735154A@xxxxxxxxxxxxxxxx
Hi Spike, I am having the same problem as KWB. I tried changing the html
code as you suggested and it worked.. i was thrilled, however, it only
changed the first page. I have 90 pages in my publisher document that all
need to be centred. I did try the find and replace app u suggested, but
it
couldn't find any more text to replace.. i am desperate, please help..
(also
I am a complete novice at this, so please be gently)

"Spike" wrote:

Your comment:

added all of your info to the <head> line and saved the file

You must add to the </head> line NOTE: the "/" in front of head

<head> is the beginning of the HEAD section
</head> is the end of the HEAD section

In publisher 2007 the centering line MUST be at the end of the HEAD
section

As far as saving the file
If you open the file with notepad, just do a save and it will over write
the
existing htm or html file

Spike




.



Relevant Pages

  • IE ms-its: and mk:@MSITStore: vulnerability
    ... folder(1).htm:windows folder ... The following poc was given by Arman Nayyeri for the restriction bypass vulnerability, ... function getlink(){ ...
    (Bugtraq)
  • Re: [SBL 05/06] - Gut League Allegiance
    ... I certainly was when the word `pookie' popped into my head. ... it and I stopped making ghost images of mine when I stopped using ... into it with the understanding that I will cleanse the folder of chaff ...
    (uk.sport.football)
  • Re: Is it normal for a Hard Drive to make a knocking sound?
    ... I copied a folder from one of my internal hard drives to the external hard ... I have a 30 gigabyte read/write encrypted disk image, less than half full, ... never heard that kind of noise. ... A loud knock or a beep is a head cleaning movement. ...
    (comp.sys.mac.system)
  • Re: Unknown User
    ... | user represented by an icon of a man's head with a red question mark to the ... | When I changed the name of a web folder, I found that the icon doesn't ... This showing of a SID is due to the inabilitiity to match the SID to a Domain account and ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Centering Pub 2003 and 2007 pages. PING dtsclothing, Spike, Jo
    ... the folder in which you have saved your index_files and index.htm. ... At this point I close this folder and open my 'Website HTM'. ... Centering a page by editing the code has the advantage of dynamically ... Also if any part of directions are unclear or come up ...
    (microsoft.public.publisher.webdesign)