Sunday, March 6, 2011

(Solution) Publisher 2007. Web site is not in the middle per automatic. (http://www.tech-archive.net/Archive/Publisher/microsoft.public.publisher.webdesign/2008-08/msg00109.html )

Method 1: Manual method.

Go to the folder on your computer where you directed your web files.

Open each *.htm file in NotePad by right clicking the file > open with > 
NotePad. If you are using the subfolder option in Pub 2003 or 2007, your 
index.htm file is your home page, and your other *.htm files for your other 
pages are usually contained in a subfolder called "index_files".

In Notepad,

Find:
</head>

Replace with:
</head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>

If you are using a page width that is different than 760 pixels, change the
width in the code string with the width of your web pages. Close NotePad and
save the changes.

After editing the code on each *.htm file and opening the edited .htm files
in IE to test the change, you can upload your files to your host.

Method 2: Semi-automatic method.

With this method you can find the </head> code, and replace it with the
revised code string in each *.htm file semi-automatically.

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 combine it to one line 
to use in Replace in files. Also change the width to the pixel width of your 
web pages if different than 760 pixels.

File Types:
*.htm

In Folder:
Use the ... button to browse to the folder where you saved your web files on 
your computer.

Assuming that you are using a subfolder, check the box at the bottom
"Replace in Subfolders".

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.

After opening the edited .htm files in IE to test the change, you can upload
your index.htm file and your index_files folder to your host.

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.

From:

http://www.tech-archive.net/Archive/Publisher/microsoft.public.publisher.webdesign/2008-08/msg00109.html

Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment