Don's site is different it's using tables, and no layers, no vml, no abs.
positioned stuff. The problem arises with centering and absolute
positioning
and web standards, which is why I don't think you'll see MS fixing Pub in
this respect. They're all about adhering to web standards now, which is
why
FP went by the boards (imo anyway).
--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression
| One for Pub 2000:
| Don -
www.vanusa.org
|
| I have tested 2003 and 2007, but don't know of any sites that use it.
Sorry.
|
| DavidF
|
message
| | >I know it can be done I've seen the hacks to center pages in Publisher.
| > Do we have links to those web around here somwhere?
| >
| >
| >
| >
| >
| > --
| > ~~~~~~~~~~~~~~~~~~
| > Rob Giordano
| > Microsoft MVP Expression
| >
| >
| >
| >
| >
| > | > |I guess I am extra dense today, but I still don't understand your
point.
| > | Maybe it was the way I answered the OP, but you can edit the code of
| > each
| > | version of Publisher to center web pages. Each requires it own code
edit
| > and
| > | workaround, but you can do it. Don provided the way to edit Pub
2000
| > and
| > | 2002 code. Jo provided the code for 2003 and 2007, and Spike
provided
| > the
| > | way to use ReplaceNFile to "automate" the process, with Pub 2007.
2003
| > web
| > | pages need a variation.
| > |
| > | Were you under the impression that it could not be done?
| > |
| > | Its just unfortunate that MSFT has not seen fit to build-in the
option
| > of
| > | centering the pages. I know little about programming or coding, but
if
| > this
| > | group can figure out the code, then it seems like MSFT should be
able
to
| > | figure out how to build this in to Publisher. Oh well, maybe
someday.
| > |
| > | DavidF
| > |
| > message
| > | | > | > The centering issue.
| > | >
| > | >
| > | > --
| > | > ~~~~~~~~~~~~~~~~~~
| > | > Rob Giordano
| > | > Microsoft MVP Expression
| > | >
| > | >
| > | >
| > | >
| > | >
| > | > | > | > | What could be? I don't understand.
| > | > |
| > | > | DavidF
| > | > |
in
| > | > message
| > | > | | > | > | > Could be because the absolute positioning of layers in
Publisher.
| > | > | >
| > | > | > --
| > | > | > ~~~~~~~~~~~~~~~~~~
| > | > | > Rob Giordano
| > | > | > Microsoft MVP Expression
| > | > | >
| > | > | >
| > | > | >
| > | > | >
| > | > | >
| > | > | > | > | > | > |I guess MSFT is kind of ridiculous, as there is no built-in
way
| > to
| > | > center
| > | > | > | Publisher web pages. By default the pages are left
justified.
| > You
| > | > can
| > | > | > design
| > | > | > | around this, and might want to read: Understanding
background
| > | > padding
| > | > in
| > | > | > a
| > | > | > | Publisher web (aka white space) :
| > | > | > |
http://msmvps.com/blogs/dbartosik/archive/2006/01/07/80563.aspx
| > | > | > |
| > | > | > | You can manually edit the html code of each page, much as
Don
| > | > described,
| > | > | > but
| > | > | > | the edit will not change your original Pub file. That means
that
| > | > each
| > | > | > time
| > | > | > | you make a change in your Pub file, and publish new pages,
you
| > will
| > | > have
| > | > | > to
| > | > | > | edit the code again before you upload them. This means that
| > unless
| > | > your
| > | > | > site
| > | > | > | is fairly static, you may find the process not very
practical.
| > With
| > | > Pub
| > | > | > 2000
| > | > | > | and 2002, the process is fairly easy, but Pub 2003 and 2007
use
| > a
| > | > | > different
| > | > | > | html coding engine, and requires a different edit.
| > | > | > |
| > | > | > | When you "Publish to the Web" and produce your html, direct
the
| > | > output
| > | > | > to
| > | > | > a
| > | > | > | folder on your computer where you can easily find it. If you
use
| > the
| > | > | > | supporting folder option you will get an index.htm file and
a
| > | > | > index_files
| > | > | > | folder that contain your other pages along with the
supporting
| > | > graphics.
| > | > | > You
| > | > | > | must edit the code of the index.htm file and all the *.htm
files
| > in
| > | > the
| > | > | > | index_files folder. You will open each *.htm file in NotePad
to
| > | > edit.
| > | > | > |
| > | > | > | Jo provided the code that will work with Pub 2003 and 2007:
| > | > | > |
| > | > | > | "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>
| > | > | > |
| > | > | > | ---------------------
| > | > | > |
| > | > | > | ------------------
| > | > | > | Spike suggested that you can use ReplaceNFile much as Don
does.
| > Here
| > | > is
| > | > | > his
| > | > | > | post:
| > | > | > |
| > | > | > | "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"
| > | > | > |
| > | > | > | ---------------------------------------------
| > | > | > |
| > | > | > | My note: I have found that you do need to change the width
to
| > match
| > | > the
| > | > | > | width of your Pub pages, which may be 760 pixels. Look at
your
| > page
| > | > | > setup.
| > | > | > |
| > | > | > | There you have it. It does work, but like I said, may be
| > | > impractical.
| > | > | > That
| > | > | > | is up to you.
| > | > | > |
| > | > | > | DavidF
| > | > | > |
| > | > | > |
| > | > | > |
| > | > | > | | > | > | > | >I made a pretty cool web page using publisher 2007 BUT I
can't
| > get
| > | > the
| > | > | > page
| > | > | > | > to center on the web site. Its strictly left aligned. Is
| > there
| > | > any
| > | > | > way
| > | > | > I
| > | > | > | > can get publisher to center my web pages?
| > | > | > | > I can't believe microsoft wouldn't have a way to do this.
It
| > would
| > | > be
| > | > | > kind
| > | > | > | > of ridiculous.
| > | > | > | > Thanks.
| > | > | > | >
| > | > | > |
| > | > | > |
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|