web page aligment with publisher.

H

Huey

I have created a web page with Pub 02, however when I put it on the web test
it all appers left aligned with half the screen not used. Is there anyway to
center the page and have the page in the center of the screen and color the
border? I am using the page setups provided by Publisher. I used custom but
it was not right for others computers.

Huey
 
D

Don Schmidt

I believe only Publisher 2000 websites can be centered and then by editing
the html files.
 
R

ravn

If you want to center the body of your Web page use these tags <center>
</center> or open your html file and in the <body> tag put this <body
align="center">

If this doesn't work try placing your work in a table that is a width=100%
 
S

Spike

Just discovered a new twist

Pub 2002 when installed on an XP machine will center using the html code
<center> after exporting as a web page using notepad
Pub 2002 when installed on a Vista machine will not center correctly using
the html code <center>
When comparing the code on both machines they are totally different
Vista writes the code different than XP does when exported as a web page

Spike
 
D

Don Schmidt

Are you sure you are not using two different versions of Publisher? This is
the first mention of this work-around.
 
D

DavidF

What SP level is 2002?

DavidF

Spike said:
Just discovered a new twist

Pub 2002 when installed on an XP machine will center using the html code
<center> after exporting as a web page using notepad
Pub 2002 when installed on a Vista machine will not center correctly using
the html code <center>
When comparing the code on both machines they are totally different
Vista writes the code different than XP does when exported as a web page

Spike
 
S

Spike

I apologies for not being clear.

I have Pub 2007 installed on a Vista machine
I have Pub 2002 installed on an XP machine

If I export a web page using Pub 2002 I CAN center it using html code <center> (I add the <center> using notepad)
If I export a web page using Pub 2007 I CANNOT center it using html code <center> (I add the <center> using notepad)
I installed Pub 2002 on the Vista machine and the exported HTML code was entirely different than the code the XP machine exported and I COULD NOT center the page
I updated the Pub 2002 on the Vista machine with the SP 3 update and now the exported HTML code on the Vista machine is the same as the code using the XP machine.
The only reason I go through all this is to be able to take advantage of the latest changes in Pub 2007 and still be able to center a page if the the need comes up. I build the Publisher file using the Pub 2007 program. I save the file then open it with the Publisher 2002 program. I then export the build as a web page. It is a pain but it is the best way I have found so far. Maybe one day MS will incorporate the center function.

I hope that this clears up my earlier comments.
Thanks for your input also
If enough people comment on these issues, we may find a better way to build this mouse trap.

Spike
 
D

Don Schmidt

I use Publisher 2000 and it also creates websites left justified. I also
add the <center> code to my html files but I do it the easy way; I use a
little free program, ReplaceInFiles.

This works only for websites created with Publisher 2000 (fairly certain)

Each of your html files requires adding the <center> code after the existing
<head> code.

You can go into each html file and do it manually or get the free
Replaceinfiles program
and make it an easy chore.


"ReplaceInFiles" can be downloaded from:

<http://www.emurasoft.com/index.htm>

The four boxes require the following information:

Find: <head>
Replace with: <head> <center>
File Types: *.html
In Folder:
(use the button to go to the folder where the html files are located on your
drive)

The bottom four boxes can be left blank.

Note: Once the boxes are filled out, the entries are retained for the next
time you use the program.

Don
------
Vancouver, USA

P.S. One of the kind visitors of this news group told us of Replaceinfiles
program some time ago; 'Sorry I forgot the individual's name. (Another
unsung hero).


I apologies for not being clear.

I have Pub 2007 installed on a Vista machine
I have Pub 2002 installed on an XP machine

If I export a web page using Pub 2002 I CAN center it using html code
<center> (I add the <center> using notepad)
If I export a web page using Pub 2007 I CANNOT center it using html code
<center> (I add the <center> using notepad)
I installed Pub 2002 on the Vista machine and the exported HTML code was
entirely different than the code the XP machine exported and I COULD NOT
center the page
I updated the Pub 2002 on the Vista machine with the SP 3 update and now the
exported HTML code on the Vista machine is the same as the code using the XP
machine.
The only reason I go through all this is to be able to take advantage of the
latest changes in Pub 2007 and still be able to center a page if the the
need comes up. I build the Publisher file using the Pub 2007 program. I
save the file then open it with the Publisher 2002 program. I then export
the build as a web page. It is a pain but it is the best way I have found
so far. Maybe one day MS will incorporate the center function.

I hope that this clears up my earlier comments.
Thanks for your input also
If enough people comment on these issues, we may find a better way to build
this mouse trap.

Spike
 
S

Spike

Replace In files works with Publisher 2002 also
I use it when I have multiple pages

Spike
 

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