2007 publisher web design - help!

F

fnl

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.
 
D

DavidF

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
 
R

Rob Giordano \(Crash\)

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.
| >
|
|
 
D

DavidF

What could be? I don't understand.

DavidF

Rob Giordano (Crash) said:
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.
| >
|
|
 
R

Rob Giordano \(Crash\)

The centering issue.


--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression





| What could be? I don't understand.
|
| DavidF
|
| | > 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.
| > | >
| > |
| > |
| >
| >
|
|
 
F

fnl

Thanks guys... it seems to be working. NOW - Rob, I just downloaded a trial
version of expression. It looks cool but as I am a "rook" is there anyway to
see an easy way to get started (considering I don't really know html, etc.)

Rob Giordano (Crash) said:
The centering issue.


--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression





| What could be? I don't understand.
|
| DavidF
|
| | > 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.
| > | >
| > |
| > |
| >
| >
|
|
 
D

DavidF

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

Rob Giordano (Crash) said:
The centering issue.


--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression





| What could be? I don't understand.
|
| DavidF
|
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.
| > | >
| > |
| > |
| >
| >
|
|
 
D

DavidF

Go over and start perusing the Web Expression group. You can learn a lot of
what it will take to build your site with Web Expression by just scanning
and reading the posts and questions for the last month or so. Among other
things, you will find others have to ask how to center pages with Web
Expression too ;-).

microsoft.public.expression.webdesigner

Good luck...like Rob said, there is a big learning curve, but if you have
ambitious plans for your site, you will probably be happier in the long run.

DavidF

fnl said:
Thanks guys... it seems to be working. NOW - Rob, I just downloaded a
trial
version of expression. It looks cool but as I am a "rook" is there anyway
to
see an easy way to get started (considering I don't really know html,
etc.)

Rob Giordano (Crash) said:
The centering issue.


--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression





| What could be? I don't understand.
|
| DavidF
|
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.
| > | >
| > |
| > |
| >
| >
|
|
 
R

Rob Giordano \(Crash\)

Create a new web from File using one of the included templates and mess
around with it - you will find Split View especially helpful when doing
this.

The most common error newbs have with EW, FP or DW is working with loose
pages...you shouldn't,,,you must create a web site not just a page
first...then you can add pages.

When you have questions with EW pop over to the Expression Web newsgroup

microsoft.public.expression.webdesigner

or...there is a new ms forum as well, but it's still new so you'd get more
answers from the usenet addr above.

Here's the forum addr;

http://forums.expression.microsoft.com/en-us/forums

this is for the entire Expression Suite so post in the correct forum when
you get there.



--
~~~~~~~~~~~~~~~~~~
Rob Giordano
Microsoft MVP Expression





| Thanks guys... it seems to be working. NOW - Rob, I just downloaded a
trial
| version of expression. It looks cool but as I am a "rook" is there anyway
to
| see an easy way to get started (considering I don't really know html,
etc.)
|
| "Rob Giordano (Crash)" wrote:
|
| > The centering issue.
| >
| >
| > --
| > ~~~~~~~~~~~~~~~~~~
| > Rob Giordano
| > Microsoft MVP Expression
| >
| >
| >
| >
| >
| > | > | What could be? I don't understand.
| > |
| > | DavidF
| > |
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.
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
| >
 
R

Rob Giordano \(Crash\)

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
|
| | > The centering issue.
| >
| >
| > --
| > ~~~~~~~~~~~~~~~~~~
| > Rob Giordano
| > Microsoft MVP Expression
| >
| >
| >
| >
| >
| > | > | What could be? I don't understand.
| > |
| > | DavidF
| > |
| > 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.
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
R

Rob Giordano \(Crash\)

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
|
| | >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
| > | > |
| > | > 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.
| > | > | > | >
| > | > | > |
| > | > | > |
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
D

DavidF

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

Rob Giordano (Crash) said:
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
| > |
| > 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.
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
D

DavidF

Yeah, now you know why I prefer the cleaner, older, less bloated code of Pub
2000.

I don't think it would take that much to add the little bit of code that is
necessary to center a Publisher webpage, but you are correct that MSFT will
be unlikely to do it. I am a bit more cynical when it comes to the reasons
though.

Personally I would welcome a new standards compliant html coding engine for
Publisher. But I am not going to hold my breath on that one either. MSFT
doesn't seem to have many resources allocated to Publisher.

By the way, I asked Spike to post the URL to his site in another thread
today. Hopefully he will do that and you can look at that code.

Thanks for your comments.

DavidF

Rob Giordano (Crash) said:
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.
| > | > | > | >
| > | > | > |
| > | > | > |
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
D

DavidF

Rob,

Here is Spike's 2007 site that is centered.

www.technicalsystemsaz.com

DavidF

Rob Giordano (Crash) said:
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
| > |
| > 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.
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
M

Mike Koewler

David,

It's not centered but is moved to right a bit. Try it in a 800x600
browser. And notice the huge room it scrolls.

Mike
Rob,

Here is Spike's 2007 site that is centered.

www.technicalsystemsaz.com

DavidF

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
| > |
| > 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.
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
D

DavidF

Hi Mike,

It is centering the "body" of the page in whatever size browser window I
use. The extra "padding" or "background" is a different issue. Not sure what
is causing that, but the centering code is working.

DavidF

Mike Koewler said:
David,

It's not centered but is moved to right a bit. Try it in a 800x600
browser. And notice the huge room it scrolls.

Mike
Rob,

Here is Spike's 2007 site that is centered.

www.technicalsystemsaz.com

DavidF

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
| > |
| > 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.
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 

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