Page postion in centre of IE.

A

arists

Hello everybody,

I have created a new web site using publisher 2007 but there's a small
problem with the preview.when i preview the page it's positioned on the left
of the IE while i want it on the middle with same distances from left and
right.Any idea?

Thanks for your time
 
R

Rob Giordano [MS MVP]

Publisher only creates left justified websites. There is a
workaround...search this newsgroup for it.
 
S

Spike

The simple fix to center pages using publisher 2007
Publish to your hard drive
Edit the htm file and replace </head> with

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

If you are using a page width different than 760 pixels change that number
in the above line

If you have multiple pages you might want to look at
http://www.emurasoft.com/replall/ a simple replace lines in multiple htm
files

Then ftp the files to your ISP

Spike
 
A

arists

thanks for your replies guys.i had done the search for previous topics and
found spike's solution.it worked fain for one page but the problem is for
multiple pages as mentioned below.the software mentioned at
http://www.emurasoft.com/replall/ does not seem to work for Vista.any other
idea of what i can try?

Ο χÏήστης "Spike" έγγÏαψε:
 
R

Rob Giordano [MS MVP]

You could just do it with Notepad, but it'd be tedious.

Keep in mind you will have to do this every time you make a change to your
website because Publisher will overwrite what html you have changed. Which
is why the Replace in Files is recommended.

There are other programs like Replace in File too.

--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
 
D

DavidF

You didn't say what didn't work, but perhaps more detailed instructions on
how to use replace in file would be helpful.

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 should be on one
line in replace in file. 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 where you directed
your web files on your computer when you Publish to Web.

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.

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. So modifying the code after you do an
update to your Pub file and Publish to the Web again, all you have to do is
open Replace in File and click Replace all. Two clicks and you are done.

If you have further difficulties, please post back with specifics, and we
will try to help you further.

DavidF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top