How to edit the page alignment in publisher?

S

site admin

I am building a site using publisher 07. It seems that is makes the website
on the left hand side. I am trying to get it to make the site in the center
of the page, any suggestions?
 
D

Don Schmidt

Publisher 2000 and 2002 can be centered easily; later versions can be done
but it is more difficult. Continue to visit this ng and someone will
probably share the method for 07.
 
D

DavidF

Publisher web pages are left justified by default, and there is no built in
way of centering the pages.

Reference: Understanding background padding in a Publisher web (aka white
space):
http://msmvps.com/blogs/dbartosik/archive/2006/01/07/80563.aspx

With that said, if you want to center your pages, you can manually edit the
html code of each *.htm file or each web page each time you update them. The
specific method of doing that depends on the version of Publisher you are
using. This will not "stick" in the Publisher file, and thus must be done
each time you make a change in the Pub file and republish. This may make it
impractical unless you are comfortable editing the code each time.

The basic method for Pub 2003 and 2007 came from Jo and Spike, and here is a
version of their instructions. When you are ready to publish your site,
Publish to the Web and direct your output to your computer where you can
easily find the index.htm file and the index_files folder. Open the
index.htm file in NotePad and right after </head> and underneath the <body>
tag string, type or copy and paste the following code after changing the
width to the width of your page:

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

------------------------------------

ABOVE the </body> tag at the end, type or paste the following:

</td>
</tr>
</table>


You will need to repeat this with each *.htm file in the index_files folder,
and you can then upload those files.

--------------

You can also use Replace in Files at
http://www.emurasoft.com/replall/index.htm to "automate" the process. Use it
to add the centering code to the <body> tag string as per your pages.
Alternatively Spike has suggested that the following will work with Pub
2007:

Find = </v:background></xml><![endif]-->


Replace With = </v:background></xml><![endif]--><table border="0"
cellpadding="0" cellspacing="2" width="800" align="center"><tr><td>


Find </body>

Replace With </td></tr></table></body>
 

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