Center Web Page

D

DMC

I notice that there are many posts regarding centering web pages however I am
not sure I have seen one that addresses for Publisher 2007 or that I can
understand. Can someone please tell me if this is possible and if so, how?
 
D

DavidF

Publisher web pages are left justified by default, and there is no built in
way of centering the page or "removing" the white space.

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

If you want to center your pages, you can edit the html code of the pages
each time you update them. The specific method of doing that depends on the
version of Publisher you are using.

Pub 2003 and 2007 from Jo and Spike:

"UNDERNEATH the <body> tag, enter (copy and paste will work) this code:(you
may need to change the width)

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

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

ABOVE the </body> tag, enter the following:

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


Jo

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

Using "replace in files" I found a common point of replacement that appears
to work for me for Publisher 2007.

Sine the background changes from one publication to another I found the
closest commonality after <body>.
That turned out to be </v:background></xml><![endif]-->

Since "replace in files" needs to have the entire text on one line I made
the replacement string as shown below.
I also changed the 1000 to 800 to accommodate the 1024 X 768 settings. I
tested it with the settings:
800 X 600
1024 X 768
1440 X 900

Not perfectly centered but real close

Takes two runs of "replace in files"
Once the strings are typed in it just takes selecting the ones you want with
the drop down arrow for Find and Replace With


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>

Spike"

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

Change the width to the pixel width of your pages. If you use ReplaceInFile
the html code in your pages may vary from Spike's. Remember that you will
have to do this edit each time to each page after you make any changes in
the Publisher doc, and create new html.

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