center graphics using publisher

P

powell747

If it's not possible to set up (having the page center it self when the
browser is resized) than I wonder if I use the "insert html" feature to
put in the code to make that happen....

Any ideas or suggestions are most helpful.

I just want my page to stay on center no matter what size a persons
browser is...

Thanks,

Jason
 
D

Don Schmidt

I believe only Publisher 2000 created webpages can be centered and then by
adding the html code. A program called ReplaceInFiles makes this a
tolerable chore.

If you care to see a sample visit www.vanusa.org
 
D

DavidF

Don,

Didn't another poster tell us that your method worked for 2002 also? I know
it doesn't work for 2003 or 2007, but you might post it anyway and let the
OP try it. Thanks.

DavidF

Don Schmidt said:
I believe only Publisher 2000 created webpages can be centered and then by
adding the html code. A program called ReplaceInFiles makes this a
tolerable chore.

If you care to see a sample visit www.vanusa.org
 
D

Don Schmidt

I thought the coding changed in 2003 and I'm uncertain if the center code
works or not. It would be great if someone with Publisher 2003 would
confirm if the <center> will work.

don


DavidF said:
Don,

Didn't another poster tell us that your method worked for 2002 also? I
know it doesn't work for 2003 or 2007, but you might post it anyway and
let the OP try it. Thanks.

DavidF
 
D

Don Schmidt

OK. Hoping someone with Publisher 2002 and only 2002 who creates a website
would give this a try and report back if their site centers.

With the program ReplaceInFiles will your site center?

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
 
D

DavidF

The OP is running Pub 2002. The coding changed in Pub 2002, and then again
in 2003. I have tried it with 2003 and 2007, and it doesn't work. However,
I think I remember a poster saying it worked for him with Pub 2002. I don't
have 2002 installed to test it. Perhaps if you post the method you use with
Pub 2000, the OP can try it and let us know if it works?

DavidF
 
R

Rob Giordano \(Crash\)

You can do it in 2000 by centering the body...but it will change if you
publish again.

I almost did it in 2003...well tried to center but it took it far right
instead, which leads me to think if you had a lot of time on your hands you
could probably do it. However....6000 lines of code for one simple page is
baffling so I gave up, opting for another beer instead.



--

Rob Giordano
Microsoft MVP - FrontPage





| The OP is running Pub 2002. The coding changed in Pub 2002, and then again
| in 2003. I have tried it with 2003 and 2007, and it doesn't work.
However,
| I think I remember a poster saying it worked for him with Pub 2002. I
don't
| have 2002 installed to test it. Perhaps if you post the method you use
with
| Pub 2000, the OP can try it and let us know if it works?
|
| DavidF
|
| | >I thought the coding changed in 2003 and I'm uncertain if the center code
| >works or not. It would be great if someone with Publisher 2003 would
| >confirm if the <center> will work.
| >
| > don
| >
| >
| > | >> Don,
| >>
| >> Didn't another poster tell us that your method worked for 2002 also? I
| >> know it doesn't work for 2003 or 2007, but you might post it anyway and
| >> let the OP try it. Thanks.
| >>
| >> DavidF
| >>
| >> | >>>I believe only Publisher 2000 created webpages can be centered and then
| >>>by adding the html code. A program called ReplaceInFiles makes this a
| >>>tolerable chore.
| >>>
| >>> If you care to see a sample visit www.vanusa.org
| >>>
| >>>
| >>> --
| >>> Don
| >>> Vancouver, USA
| >>>
| >>>
message
| >>> | >>>>
| >>>> If it's not possible to set up (having the page center it self when
| >>>> the
| >>>> browser is resized) than I wonder if I use the "insert html" feature
to
| >>>> put in the code to make that happen....
| >>>>
| >>>> Any ideas or suggestions are most helpful.
| >>>>
| >>>> I just want my page to stay on center no matter what size a persons
| >>>> browser is...
| >>>>
| >>>> Thanks,
| >>>>
| >>>> Jason
| >>>>
| >>>>
| >>>> powell747 wrote:
| >>>>> *Hi,
| >>>>>
| >>>>> How do I set it up so that the graphics center themselves when the
| >>>>> browser is resized??
| >>>>>
| >>>>> Is it even possible with publisher??
| >>>>>
| >>>>> THanks for your help,
| >>>>>
| >>>>> Jason Powell *
| >>>>
| >>>>
| >>>>
| >>>> --
| >>>> powell747
|| >>>> Posted via http://www.codecomments.com
|| >>>>
| >>>
| >>>
| >>
| >>
| >
| >
|
|
 
S

Spike

<center> works fine in 2002

Spike

DavidF said:
The OP is running Pub 2002. The coding changed in Pub 2002, and then again
in 2003. I have tried it with 2003 and 2007, and it doesn't work.
However, I think I remember a poster saying it worked for him with Pub
2002. I don't have 2002 installed to test it. Perhaps if you post the
method you use with Pub 2000, the OP can try it and let us know if it
works?

DavidF
 
R

Rob Giordano \(Crash\)

Spike says it does.
I'd try it but only have 2000 & 2003

still cant get over 6000 lines of code in 2003 sheesh.

--

Rob Giordano
Microsoft MVP - FrontPage





| Thanks Rob. You are correct about having to redo it every time you
republish
| and in my opinion that makes it a bit impractical unless your site is
fairly
| static. One of the primary rationales behind using Publisher for websites
is
| not needing to do any code editing....KISS. One of my wishes for Publisher
| is that MSFT eventually builds in the option of centering the pages....but
I
| am not holding my breath.
|
| I am just curious about whether it works in 2002. Hopefully the OP will
let
| us know.
|
| Beer good....coding bad...ugh!
|
| DavidF
|
| | > You can do it in 2000 by centering the body...but it will change if you
| > publish again.
| >
| > I almost did it in 2003...well tried to center but it took it far right
| > instead, which leads me to think if you had a lot of time on your hands
| > you
| > could probably do it. However....6000 lines of code for one simple page
is
| > baffling so I gave up, opting for another beer instead.
| >
| >
| >
| > --
| >
| > Rob Giordano
| > Microsoft MVP - FrontPage
| >
| >
| >
| >
| >
| > | > | The OP is running Pub 2002. The coding changed in Pub 2002, and then
| > again
| > | in 2003. I have tried it with 2003 and 2007, and it doesn't work.
| > However,
| > | I think I remember a poster saying it worked for him with Pub 2002. I
| > don't
| > | have 2002 installed to test it. Perhaps if you post the method you use
| > with
| > | Pub 2000, the OP can try it and let us know if it works?
| > |
| > | DavidF
| > |
| > | | > | >I thought the coding changed in 2003 and I'm uncertain if the center
| > code
| > | >works or not. It would be great if someone with Publisher 2003 would
| > | >confirm if the <center> will work.
| > | >
| > | > don
| > | >
| > | >
| > | > | > | >> Don,
| > | >>
| > | >> Didn't another poster tell us that your method worked for 2002
also?
| > I
| > | >> know it doesn't work for 2003 or 2007, but you might post it anyway
| > and
| > | >> let the OP try it. Thanks.
| > | >>
| > | >> DavidF
| > | >>
| > | >> | > | >>>I believe only Publisher 2000 created webpages can be centered and
| > then
| > | >>>by adding the html code. A program called ReplaceInFiles makes
this
| > a
| > | >>>tolerable chore.
| > | >>>
| > | >>> If you care to see a sample visit www.vanusa.org
| > | >>>
| > | >>>
| > | >>> --
| > | >>> Don
| > | >>> Vancouver, USA
| > | >>>
| > | >>>
| > message
| > | >>> | > | >>>>
| > | >>>> If it's not possible to set up (having the page center it self
| > when
| > | >>>> the
| > | >>>> browser is resized) than I wonder if I use the "insert html"
| > feature
| > to
| > | >>>> put in the code to make that happen....
| > | >>>>
| > | >>>> Any ideas or suggestions are most helpful.
| > | >>>>
| > | >>>> I just want my page to stay on center no matter what size a
persons
| > | >>>> browser is...
| > | >>>>
| > | >>>> Thanks,
| > | >>>>
| > | >>>> Jason
| > | >>>>
| > | >>>>
| > | >>>> powell747 wrote:
| > | >>>>> *Hi,
| > | >>>>>
| > | >>>>> How do I set it up so that the graphics center themselves when
the
| > | >>>>> browser is resized??
| > | >>>>>
| > | >>>>> Is it even possible with publisher??
| > | >>>>>
| > | >>>>> THanks for your help,
| > | >>>>>
| > | >>>>> Jason Powell *
| > | >>>>
| > | >>>>
| > | >>>>
| > | >>>> --
| > | >>>> powell747
| > |
| >| > | >>>> Posted via http://www.codecomments.com
| > |
| >| > | >>>>
| > | >>>
| > | >>>
| > | >>
| > | >>
| > | >
| > | >
| > |
| > |
| >
| >
|
|
|
|
 
D

DavidF

Thanks Rob. You are correct about having to redo it every time you republish
and in my opinion that makes it a bit impractical unless your site is fairly
static. One of the primary rationales behind using Publisher for websites is
not needing to do any code editing....KISS. One of my wishes for Publisher
is that MSFT eventually builds in the option of centering the pages....but I
am not holding my breath.

I am just curious about whether it works in 2002. Hopefully the OP will let
us know.

Beer good....coding bad...ugh!

DavidF
 
D

Don Schmidt

'Appreciate the clarification. I've modified my canned response to use
ReplaceInFiles to include version 2002.

Take care,
 
D

DavidF

Spike,

Thanks for confirming this. I suspect you were the poster I remembered
saying this before. At least now we know that the approach works for 2000
and 2002, but nothing newer.

DavidF
 
D

DavidF

How do you count the lines of code? Surely not one at a time. In my testing,
Pub 2003 filtered pages are certainly better than the "rich html" pages, but
still 2 to 4 times as heavy as Pub 2000. Granted even 2000 was heavy
compared to well written, efficient code, but it is much simpler code
without VML. I think the code that you looked at and came up with your 6,000
lines of code was "rich html" by the way.

What is a shame is that in spite of the code bloat, the text loads quickly
in a Pub 2003 page. But the VML creates lots of problems. If you optimize
and size the images, and import them instead of embedding them, the images
load pretty quickly in spite of being code bloated. If you import them,
Publisher does not make copies, and both IE and FF use the same images.

Anyway, let me know how you count the lines. I want to do a little testing
in all my free time...yeah...that's my story and I am stickn' too it.

DavidF
 
R

Rob Giordano \(Crash\)

I created a simple one page web in Pub 2003, then opened the index page in
Frontpage 2003 from there I can edit pubs code and in fp's code view you can
see the lines with line numbers.

--

Rob Giordano
Microsoft MVP - FrontPage





| How do you count the lines of code? Surely not one at a time. In my
testing,
| Pub 2003 filtered pages are certainly better than the "rich html" pages,
but
| still 2 to 4 times as heavy as Pub 2000. Granted even 2000 was heavy
| compared to well written, efficient code, but it is much simpler code
| without VML. I think the code that you looked at and came up with your
6,000
| lines of code was "rich html" by the way.
|
| What is a shame is that in spite of the code bloat, the text loads quickly
| in a Pub 2003 page. But the VML creates lots of problems. If you optimize
| and size the images, and import them instead of embedding them, the images
| load pretty quickly in spite of being code bloated. If you import them,
| Publisher does not make copies, and both IE and FF use the same images.
|
| Anyway, let me know how you count the lines. I want to do a little testing
| in all my free time...yeah...that's my story and I am stickn' too it.
|
| DavidF
|
|
| | > Spike says it does.
| > I'd try it but only have 2000 & 2003
| >
| > still cant get over 6000 lines of code in 2003 sheesh.
| >
| > --
| >
| > Rob Giordano
| > Microsoft MVP - FrontPage
| >
| >
| >
| >
| >
| > | > | Thanks Rob. You are correct about having to redo it every time you
| > republish
| > | and in my opinion that makes it a bit impractical unless your site is
| > fairly
| > | static. One of the primary rationales behind using Publisher for
| > websites
| > is
| > | not needing to do any code editing....KISS. One of my wishes for
| > Publisher
| > | is that MSFT eventually builds in the option of centering the
| > pages....but
| > I
| > | am not holding my breath.
| > |
| > | I am just curious about whether it works in 2002. Hopefully the OP
will
| > let
| > | us know.
| > |
| > | Beer good....coding bad...ugh!
| > |
| > | DavidF
| > |
| > message
| > | | > | > You can do it in 2000 by centering the body...but it will change if
| > you
| > | > publish again.
| > | >
| > | > I almost did it in 2003...well tried to center but it took it far
| > right
| > | > instead, which leads me to think if you had a lot of time on your
| > hands
| > | > you
| > | > could probably do it. However....6000 lines of code for one simple
| > page
| > is
| > | > baffling so I gave up, opting for another beer instead.
| > | >
| > | >
| > | >
| > | > --
| > | >
| > | > Rob Giordano
| > | > Microsoft MVP - FrontPage
| > | >
| > | >
| > | >
| > | >
| > | >
| > | > | > | > | The OP is running Pub 2002. The coding changed in Pub 2002, and
then
| > | > again
| > | > | in 2003. I have tried it with 2003 and 2007, and it doesn't work.
| > | > However,
| > | > | I think I remember a poster saying it worked for him with Pub
2002.
| > I
| > | > don't
| > | > | have 2002 installed to test it. Perhaps if you post the method you
| > use
| > | > with
| > | > | Pub 2000, the OP can try it and let us know if it works?
| > | > |
| > | > | DavidF
| > | > |
| > | > | | > | > | >I thought the coding changed in 2003 and I'm uncertain if the
| > center
| > | > code
| > | > | >works or not. It would be great if someone with Publisher 2003
| > would
| > | > | >confirm if the <center> will work.
| > | > | >
| > | > | > don
| > | > | >
| > | > | >
| > | > | > | > | > | >> Don,
| > | > | >>
| > | > | >> Didn't another poster tell us that your method worked for 2002
| > also?
| > | > I
| > | > | >> know it doesn't work for 2003 or 2007, but you might post it
| > anyway
| > | > and
| > | > | >> let the OP try it. Thanks.
| > | > | >>
| > | > | >> DavidF
| > | > | >>
| > | > | >> | > | > | >>>I believe only Publisher 2000 created webpages can be centered
| > and
| > | > then
| > | > | >>>by adding the html code. A program called ReplaceInFiles makes
| > this
| > | > a
| > | > | >>>tolerable chore.
| > | > | >>>
| > | > | >>> If you care to see a sample visit www.vanusa.org
| > | > | >>>
| > | > | >>>
| > | > | >>> --
| > | > | >>> Don
| > | > | >>> Vancouver, USA
| > | > | >>>
| > | > | >>>
in
| > | > message
| > | > | >>> | > | > | >>>>
| > | > | >>>> If it's not possible to set up (having the page center it
self
| > | > when
| > | > | >>>> the
| > | > | >>>> browser is resized) than I wonder if I use the "insert html"
| > | > feature
| > | > to
| > | > | >>>> put in the code to make that happen....
| > | > | >>>>
| > | > | >>>> Any ideas or suggestions are most helpful.
| > | > | >>>>
| > | > | >>>> I just want my page to stay on center no matter what size a
| > persons
| > | > | >>>> browser is...
| > | > | >>>>
| > | > | >>>> Thanks,
| > | > | >>>>
| > | > | >>>> Jason
| > | > | >>>>
| > | > | >>>>
| > | > | >>>> powell747 wrote:
| > | > | >>>>> *Hi,
| > | > | >>>>>
| > | > | >>>>> How do I set it up so that the graphics center themselves
when
| > the
| > | > | >>>>> browser is resized??
| > | > | >>>>>
| > | > | >>>>> Is it even possible with publisher??
| > | > | >>>>>
| > | > | >>>>> THanks for your help,
| > | > | >>>>>
| > | > | >>>>> Jason Powell *
| > | > | >>>>
| > | > | >>>>
| > | > | >>>>
| > | > | >>>> --
| > | > | >>>> powell747
| > | > |
| > | >
| >| > | > | >>>> Posted via http://www.codecomments.com
| > | > |
| > | >
| >| > | > | >>>>
| > | > | >>>
| > | > | >>>
| > | > | >>
| > | > | >>
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| > |
| > |
| >
| >
|
|
 

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