Stevan,
It occurs to me that you might find this whole idea of editing the html code
of your Publisher websites files as intimidating, confusing, difficult or
somehow a bad idea. After all, the whole reason most of us use Publisher is
so that we don't have to mess with the coding or understand it. However, the
instructions that Don gave you do work, work consistently, and are much
easier than they may seem. And once you download and set up ReplaceInFiles,
changing your site files so that they will automatically center is a simple
two click operation.
To show you how easy and effective it is, try this manual code edit:
1. Open your Publisher 2002 file > File > Export As, just as you normally do
to produce your webfiles, but direct them to a folder on your computer where
you can easily find them such as your desktop.
2. Go to those newly generated website files and find the index.htm file and
double click it and open it in IE.
3. In IE go to View > Source and this will open your index.htm file in
NotePad. There is the html code for your page in case you never looked at it
before. Yeah, that is why most of us don't want to mess with html coding and
prefer to let Publisher do it for us.
4. In NotePad go to Edit > Find and paste in ' said:
Find next. It will take you to where </head> is in the code. Or you can
scroll down until you find it. Then paste ' <center> ' without the quotes
directly after </head>, so that the line will now read ' </head> <center> '
, without the quotes.
5. Close NotePad and say yes to save the changes.
6. Double click the index.htm file again and open in IE, and now your page
will be centered in your browser window. Change the size of the browser
window and the page moves dynamically to the center regardless of the size
of the window.
Now to do that with each page of your website files each time you make a
change to your site would be tedious, and that is where ReplaceInFiles is so
handy. You don't have to open the .htm files in NotePad and ever look at the
source code or manually edit it. Once you set it up it will automatically go
through each page of your html code and replace ' </head> ' with ' </head>
<center> '. And once you set it up to the first time it remembers the setup
the next time you open it, so from that point on it is a two click, easy
peasy (I like those words) operation.
Of course if you switch to Pub 2007 then the only difference is the line of
code that you replace. Still easy peasy once you set it up correctly the
first time.
Try it, you'll like it ;-) We have been doing it for years without a
problem.
DavidF