Website border issue

U

uniquelylynda

I am using ms pub 2007 and I just finished my website and I FTPed it and when
I went to see the results the site seems to be off centered.

It is left justified when I view it in Firefox / IE. Is there any thing
that I can do to center the website...code / template...

any suggestions would be appreciated!

www.uniquely-lyndas.com
 
D

DavidF

Publisher produces fixed width pages, that are left justified by design.

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, there is no built-in capability of
centering your pages, but you can manually edit the html code of each *.htm
file (each web page). However you have to do this each time you update your
site. This code edit is not saved in the Publisher file and must be redone
each time you republish. This may make it impractical unless you are
comfortable editing the code each time.

The workaround:

When you Publish to the Web direct the output to a folder on your hard drive
where you can find it.

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 of the page, type or paste the following:

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


Close NotePad and save the changes to index.htm.

You will need to repeat this with each *.htm file in the index_files folder,
and then you can then upload your files. Remember, you have to do this each
time you modify your Pub file and produce new .htm files.

There is also a way to semi-automate this process.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>

If you find all this too tedious, then work with the left justification.
Read the article provided. Continue to use a background color or image to
fill the padding. Perhaps use a 984 pixel width page which is the widest
suggested in Pub 2007, so that the amount of padding will be minimal. I
would caution about making your page any wider than this. If designed
correctly a left justified page can look great and in general will be a
whole lot easier to manage using Publisher.

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