<head><center>
The fix to center pages using publisher 2003 and 2007
Publish to your hard drive
Edit the htm file(s) and replace </head> with
</head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>
" All above on one line "
Be sure that you edit the </head> line and NOT the <head> line
If you are using a page width different than 760 pixels change that number
in the above line
If you have multiple pages you might want to look at
http://www.emurasoft.com/replall/ a simple replace lines in multiple htm
files
Then ftp the files to your ISP
Spike
"armile" <arm...@discussions.microsoft.com> wrote in message
news:63BA8D5E-DAD6-4B8C...@microsoft.com...
> I cant get the webpage to show up in the center of the browser window. i
> am
> using publisher 2007. can anyone help?
>
> thanks
This is my first:) centered website http://www.iosholiday.com
thanks for sharing it
Panos
Good Job
Thanks for posting back with your success
Spike
"Panos" <Pa...@discussions.microsoft.com> wrote in message
news:01DE1CBE-0508-4848...@microsoft.com...
"Panos" <Pa...@discussions.microsoft.com> wrote in message
news:01DE1CBE-0508-4848...@microsoft.com...
Did you notice the link to his Greek version: http://www.iosholiday.com/gr/
Here is another of his sites that is also bilingual:
http://www.bratislava.gr/
Here is the code snippet that Panos uses:
<style>
a{text-decoration:none;}
a:hover {color: ff8c00;}
</style>
---------
Did you notice that his site pages center dynamically? The workaround as
presented does work, has worked consistently and is cross browser
compatible.
DavidF
"Stevan" <in...@timesaversforteachers.com> wrote in message
news:eGh62Chv...@TK2MSFTNGP04.phx.gbl...
Duh. Of course it is. The fact that a spade is so much more use for digging
a hole than a shovel is because you're not holding the shovel right.
Why didn't I think of that?
Keep eating your soup with the chopsticks, David.
Andy2427
Whilst you are waiting for Spike to reply about your width and centering
problem, can I tell you how I centre my pages, which may help.
Like you, and Panos, I have a website with multiple pages and I use the
'Replace in Files' method which Spike suggests.
I built my website in publisher 2003, although I understand it works for
2007 also.
Download free from http://www.emurasoft.com/replall/index.htm then set
coding as follows:
Find: </head>
Replace with: </head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>
File Types: *.htm
In Folder: Use the ... button to browse to the folder where you directed
your web files on your computer when you Publish to Web.
You can copy and paste the codes from here.
Once you have set this coding, the programme remembers it so you only do
this part once.
So, when you've saved your changes to your pub. doc. and 'publish to the web',
close this file and open your folder containing your index_files and
index.htm. (I keep these in a folder on my desktop marked 'HTM & HTML')
Open 'Replace in Files' from your programmes and a box will appear. Click
'Replace in Subfolders' and 'Replace All' and you should get a "Finished"
dialog that will confirm the replaced strings of code for each *.htm
file/page in your web files.
You will need to repeat this last part each time you update your pub. doc.
and before you re-publish, but it only takes a minute and it will centre all
of your page at the same time.
Close 'Replace in Files' and publish your website via your usual method,
when you look at your site on the web, it will be in the centre of the
screen.
Just note that this will not show in a page preview, only after you've
published,
How this will be affected by your 1500px width I'm not sure, you may have to
wait for Spike on that, but this method on centering pages does work so it
may be worth trying in the meantime.
Maureen
"Andy2427" <Andy...@discussions.microsoft.com> wrote in message
news:432AE40A-71DD-4717...@microsoft.com...
The width in the code snippet must be the same as the width of your page. In
your case you are using pages that are 1500 pixels wide which is a mistake
in my opinion. In most case the viewer will have to scroll horizontally to
view your pages which is a big design no-no. Your pages should be no wider
than 984 pixels wide, which is the widest default in Publisher. Furthermore
if you insist on leaving your pages 1500 pixels wide, there is no need to
center them, because once again almost everybody will have to scroll
horizontally to view all the page anyway.
As per the code only working on the first page...that is probably because
you only changed the code on the first page. If you had read the directions
provided more carefully you would have noted that the code needs to be
edited on each page, each time you change the Publisher publication and
publish. That is why we recommended using replaceinfile @
http://www.emurasoft.com/replall/ .You can follow Maureen's more complete
directions for how to use replaceinfiles.
Once again, please reconsider 1500 pixel width pages. This is a big design
mistake.
DavidF
"Andy2427" <Andy...@discussions.microsoft.com> wrote in message
news:432AE40A-71DD-4717...@microsoft.com...
Please post the URL to your site so we may evaluate what the proper width
and centering code should be.
Spike
"Andy2427" <Andy...@discussions.microsoft.com> wrote in message
news:432AE40A-71DD-4717...@microsoft.com...