How to center the web page in the screen?

R

RMG

Hi!

First of all, sorry for my english, but I have a doubt using MS Publisher.

I have a simple page done in Publisher just with 4 images and 3 text boxes.

My question is how can I center that web page in the screen of the people
that are visiting the website. ?

Thanks for your time!
 
D

Don Schmidt

What version of Publisher do you use to create your website; different
versions require different patches.
 
S

Spike

The fix to center pages using publisher 2000 and 2002
Publish to your hard drive
Edit the htm file(s) with notepad, wordpad or any other text editor and
replace <head> with

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

Don Schmidt

Spike,

Though not needed in your advice, the Pub 2000 & 2002, the Solidus was
missing in front of "head". The "back slash"? Reverse Solidus. <G>
(They are ID'd in the Character Map). 'Have time on my hands this fine
morning.
 
E

Eric James

For the benefit of all readers, please stop repeating this erroneous
information, implementation of which results in a badly broken invalid html
document. Read any of the multitude of available documents and tutorials on
the web to find out why, but here's the gist:

A valid html document is structured like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>The document title</title>
<!-- other header tags -->
</head>
<body>
<!-- document content goes here -->
</body>
</html>

Nothing is allowed between the <html> tag pair except a <head> tag pair
containing header information, a <body> tag pair containing the body
content, or a <frameset> tag pair which I won't go into here. I woulld
suggest further reading elsewhere to see what is allowed within the <head>
and <body> blocks.
Implementing the recommended hack results in either this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>The document title</title>
<!-- other header tags -->
</head><center>
<body>
<!-- document content goes here -->
</body>
</html>

or this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>The document title</title>
<!-- other header tags -->
</head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>
<body>
<!-- document content goes here -->
</body>
</html>

Both of these are invalid because neither the <center> or <table> tags are
allowed in those positions, and even if they were, the second is doubly
wrong because the table definition is missing it closing tags, viz:
</td></tr></table>
which the original author of this particular hack probably placed after the
</body> tag, but this would appear to have been lost somewhere.

The fact that documents hacked in this way display at all, let alone as
intended, relies on the leniency built into browsers which allows for a
certain amount of invalid html to be processed and certain errors to be
ignored. However, there is no standard for how this should be done, so this
is a dangerous practice which gives rise to different results in different
browsers, and even in different versions of the same browser, which seems to
be one of the main problems respondents in this newsgroup complain of.
 
S

Spike

Don

Using 2000 and 2002 it is the <head> that gets replaced with <head><center>
NO backslash on this one
2003 and 2007 indeed it is the </head> ......

I always include both just in case a reader comes along with the other
version that the OP asked for. Does this answerer your query? Did I get
the jest of your comment?

Spike
 
D

Don Schmidt

Spike,

You've created the need for a test; below is the begining of a test site of
mine before centering.
Note the </head> below.
When I apply ReplaceInFiles I replace </head> with </head><center>
But! Doing it your way, it changes the first appearance of <head> with
<head><center>

Conclusion after testing both ways, doesn't seem to make a difference. ????

<!doctype html public "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Publisher 2000">
<title>DEFCON 5 TEST CENTER</title>
</head> <---------------------------------------- Note the /
<body bgcolor="#f9ffd7" link="#000080" vlink="#660099" text="#000000"
topmargin=0 leftmargin=0>
<a name=top></a>

Don




Spike said:
Don

Using 2000 and 2002 it is the <head> that gets replaced with
<head><center> NO backslash on this one
2003 and 2007 indeed it is the </head> ......

I always include both just in case a reader comes along with the other
version that the OP asked for. Does this answerer your query? Did I get
the jest of your comment?

Spike
 
D

DavidF

Cool...we both learned something today. I always edited <head> and didn't
know the code would work on </head>.

I still think for consistency sake, that your canned response should
reference the <head> tag. It is also easier and faster to find if someone
did choose to edit the .htm(l) files manually.

DavidF
 
E

Eric James

Can you believe this dim-witted idiot?
'One dissenting voice' and the entire weight of the W3C. What do they
matter?

And of course, the two web sites quoted have actually been highlighted as
having cross-browser compatibility problems by their creators asking for
help. It really doesn't get any more bizarre.
Still, no doubt DavidF will still be here in a couple of years time,
promising that the browser manufacturers will soon be issuing patches for
their latest products so that your broken web pages will continue to work...
And Google will of course assign a team to write special routines to parse
and index your pages because they really wouldn't want to simply label your
web sites as being incoherent gibberish, would they?
 
D

Don Schmidt

Eric, so far you are the only one in this news group who is against the use
of the <center> code insert. Many of have used it for several years with
satisfactory results.

And you loose your credibility and bring into question your respect for
others when resulting to discourteous denunciation of a long standing
respected member of this Publisher group. If the many of us who use the
<center> fix are out of step, in your view (and the W3C if you wish to add
them), at least were in unison together.

--
Don - Vancouver, USA - www.vanusa.org a Publisher 2000 website.
"May your shadow be found in happy places." - Native North American
 
E

Eric James

There is only so much one person can achieve in the face of mob rule. I'm
sure I'm not the first nor will be the last to at least try to bring some
genuine enlightenment into this peculiar world. In the land of the blind, as
they say, the one-eyed man is king.
It's obviously hard to accept when a previously revered icon or belief is
shown to be flawed, but that's progress and is the way of the world at
large. Imagine the pain for the religious in realising that there is, in
fact, no god.
As far as "respect" goes, it has a context, and generally is not given
gratis but needs to be earned. DavidF has admittedly lost any I might have
given him in this field due to his repeated postings of misleading and
erroneous information coupled with a dogged determination in refusing to
recognise them as such in the face of overwhelming evidence. Some of it's
fairly harmless, of course - here's the latest:

-----
The short answer is that IE8 does not render anything on a Pub 2003 or 2007
page that is grouped together, and the navbar buttons are grouped together.
While we wait for a patch from MSFT here is a workaround fix. Go to each
page of your publication Edit > Select All and then Arrange > Ungroup. Now
your buttons will show. If you would like a longer explanation of this, post
back.

DavidF
-----

The implication is clearly that the fault lies with IE8. It doesn't. The
fault is with Publisher, and it's unlikely there will ever be a fix for
Publisher 2003, or 2000, for that matter. And are they going to fix the
problems in Firefox too? The best advice for a long-term solution for most
people with their varieties of problems would be to use a better tool to
make their web pages in future. Does he ever say that?


Don Schmidt said:
Eric, so far you are the only one in this news group who is against the
use of the <center> code insert. Many of have used it for several years
with satisfactory results.

And you loose your credibility and bring into question your respect for
others when resulting to discourteous denunciation of a long standing
respected member of this Publisher group. If the many of us who use the
<center> fix are out of step, in your view (and the W3C if you wish to add
them), at least were in unison together.

--
Don - Vancouver, USA - www.vanusa.org a Publisher 2000 website.
"May your shadow be found in happy places." - Native North American
 
M

MAURH

Tell us all Mr. James, have you always been this arrogant, condescending and
patronizing...or has it taken alot of practice?
 
E

Eric James

Sorry Maureen, I realise the caravan site is yours.

To answer your question - indeed not, as you would be aware if you actually
knew me. I may however have a trait for perfection where appropriate, and a
deep technical knowledge and experience gained from years of working in the
i.t. industry.
 
M

MAURH

Thank you for your apology Mr. James.

Whilst we may all appreciate that you have vast amounts of knowledge and
experience in the IT industry, I also have many years experience working
with people. The one fact that you fail to realise or appreciate is that
people make free choices. We all know there are other products out there,
but in this MSFT newsgroup people have 'chosen' to use Publisher....for
their own reasons and in spite of yours or anyone else's opinion.
They have worked hard and spent a great deal of time and effort producing
their work. When they have problems and ask for help, they do not ask for,
or indeed need, someone constantly and condescendingly telling them that
they have 'chosen' the wrong product or belittling those who give their time
freely to help.

Your comments so far have only damaged any credibility you may have been
seeking, so unless you have a valuable contribution to make to this
newsgroup regarding Publisher, may I respectfully suggest that you seek
another outlet for your 'trait for perfection' and leave others to help
those who genuinely want help.
 
E

Eric James

So, you then would stand idly by if you overheard a stranger telling
children to warm their hands by putting them into the flames of a fire?

Anyway, just how do you know if anything you read on the internet is true?
Are you saying you think nobody should try to raise awareness of at least
some of the material to be found which is wrong or misleading, posted for
whatever reason, well-meaning or otherwise?
What if, for the sake of conjecture, someone posted a 'solution' to one of
your problems which enabled them to later hack into your web site and steal
all of your customer details, or have it send them details of everyone who
looks at it? How would you know? (These are easy, even trivial things to do,
incidentally).
How do you really feel about a 'solution' to a problem which unbeknownst to
you and the person who provided it, only allows half the people looking at
your web site to read it properly? Or that the content of your pages will
never be discoverable using Google? Or readable by the disabled? (in some
circumstances you can be sued if not).
I'm sorry if you don't like my advice, you don't have to take it.
 
D

DavidF

Maureen,

The answer is a lot of practice.

While I appreciate the fact that you and Don have chosen to defend me and
confront this person, you should know that he already knows he is wrong. An
IT professional? Maybe. Here to save the children from the evils of
Publisher webs? Nonsense!

He has already made all these irrational arguments against using Publisher
to build webs before. I had a protracted 'debate' with him back in February
in the general Publisher newsgroup about the suitability of using Publisher
to build websites. Though I proved how untenable and irrational his
positions and arguments are, I also created a personal enemy, and thus the
attacks in this group. Here is a link to that thread:
http://www.microsoft.com/office/com...84c7&mid=1661ac83-2fa5-40f5-b40f-bdd6bcc884c7

I won't reiterate everything that was said and 'debated' in that thread, but
suffice it to say that he has already brought up most every possible reason
and argument as to why someone should not use Publisher to build a web, and
I have refuted each and proved them all to be spurious. In the end he can
offer no facts or rational, logical reasons for not using Publisher to build
webs, and that is why he has resorted to the personal attacks and name
calling. That is why you have seen him getting increasingly more angry and
frustrated as I have followed him around and corrected his misinformation.
He is wrong and he knows it.

His primary argument is that no one should use Publisher to build webs
because Publisher does not produce 'standards compliant' html code. This is
based on the premise and assumption that unless the code is 'standards
compliant' you cannot achieve cross browser compatibility. This argument is
flawed and wrong when it comes to Publisher webs.

The bottom line is that in spite of the fact that the none of the different
versions of Publisher produce 'standards compliant' html code, you *can*
produce cross browser compatible webs with Publisher 2000, 2002, 2003 and
2007, *IF* you know how to use the program properly. He simply does not know
how to use the programs correctly and continues to show his ignorance in
most every post in this group.

Over the past 5 years or so I and others in this group have addressed the
issues of Publisher web cross browser compatibility and found most of the
issues that cause problems are usually related to print publication
formatting, layout and design techniques that are easily resolved by
tweaking the layout or design slightly. What a user needs to understand is
that Publisher cannot convert all print designs and formatting to html that
is cross browser compatible, but that is true regardless of what tool you
use. However, we have also found that if you avoid a few formatting and
layout pitfalls, and tweak your pages so that they function correctly and
look good in IE and FireFox, then they will also work in Opera and Safari
and most other browsers.

You *can* build Publisher webs that are cross browser compatible. This is
not an opinion...it is a fact, and he can scream and yell and stomp his
feet, attack me and try to scare people as much as he wants, and it won't
change it.

He has also twisted and distorted my position about the choice of using
Publisher to build webs. To set things straight, my basic position is that
the choice of whether to use Publisher for a web really depends on what the
user's goals are for that web. If all they want is a relatively small,
simple static, fixed width website, and if they already own and know how to
use Publisher for print publications, then it can be a good choice to easily
and quickly build a good looking, fully functional, relatively fast loading
and crossbrowser compatible website. I also believe strongly that suggesting
that a person *must* use a program that produces 'standards compliant'
html code is simply overkill and unnecessary for what most people want to
accomplish with Publisher.

I am not saying that it is the best choice for everybody, and in fact
frequently suggest to some people that they should use other programs when I
feel they will not be able to achieve the goals they have for their sites.
Anyone that reads this group on a regular basis knows this to be true. If
you want more dynamic functionality or are planning a large site, then you
might consider investing in a program such as Dreamweaver or Web Expression
or other code editor programs, or perhaps a server side solution. But you
will have to invest a lot of hours learning html coding, CSS and more to use
those programs effectively and not everyone has either the time or the
aptitude.

With these things said, my goal in this group is to continue to provide
people who post in this group all the information they need to make educated
decisions about using Publisher to build their webs, and to help those
people that do choose to use Publisher. When this person posts
misinformation I will follow and clean up after him, and I would appreciate
your help along with Don's, Spike's and the other regulars in the group.
However, I refuse to engage him directly...I have wasted enough of my time
with his nonsense.

DavidF
 
D

DavidF

Don,

Thanks. I fear that this person is simply not interested in reality. We will
just have to continue to follow him around and clean up after him when he
spews forth his untenable positions and misinformation. I appreciate your
help.

DavidF

Don Schmidt said:
Eric, so far you are the only one in this news group who is against the
use of the <center> code insert. Many of have used it for several years
with satisfactory results.

And you loose your credibility and bring into question your respect for
others when resulting to discourteous denunciation of a long standing
respected member of this Publisher group. If the many of us who use the
<center> fix are out of step, in your view (and the W3C if you wish to add
them), at least were in unison together.

--
Don - Vancouver, USA - www.vanusa.org a Publisher 2000 website.
"May your shadow be found in happy places." - Native North American
 

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