How to center the web page in the screen?

D

Don Schmidt

David,

I don't think anyone gives credence to his criticism. It can be
untrustworthy.

Take care,

Don
 
E

Eric James

It is becoming obvious that trying to educate David into better ways is
futile.
It is sad that there is almost nobody posting here highlighting his
commonplace errors and offering genuinely helpful advice which will really
help people avoid the issues which are causing them to post here in the
first place in future.
I got interested in reading the stuff here when the problems with IE8
emerged. I was quite shocked to see the amount of misunderstanding, errors
and falsehoods being propagated here, so felt I had to contribute.
Ultimately the reader must decide for themselves, but I will undoubtedly
tire of the role of a perforated messenger.
I would urge people to look elsewhere to gain a balanced view. David has
highlighted David Bartosik as being a respected commentator on Publisher -
look here:
http://msmvps.com/blogs/dbartosik/a...-the-typical-publisher-web-design-newbie.aspx
I'll quote an extract from that page:
"How do I get my Publisher web pages to display correctly in all browsers?
Basically you don't. Publisher is designed to exploit the technologies of
the Internet Explorer browser. Support in a non Windows IE browser is
limited at best. It is a limitation of using Publisher for a web site."

David advocates making changes to your web page designs to work around the
problems which Publisher creates - ask yourself, why should you do that? A
tool is supposed to help you do things, not make it more difficult. Surely,
if it isn't good enough to do what you want, and the tool either isn't
necessary or there are better ones available - using a better tool would be
a sensible approach Publisher, after all, was never designed for or intended
to be seriously used for making web pages.

I may yet post a comment to one of Davids other recent rants but as it's
quite lengthy and nearly every sentence in it is wrong or misleading, I
simply don't have the time at the moment. Presumably unlike David I'm being
paid for the application of my expertise elsewhere.

David says he is wasting his time with my nonsense - I would say the
uninformed reader is setting themselves up for wasting a considerably larger
amount of their time, if not now in the future, having unquestioningly
followed the 'advice' often parroted here. As I write, many people are
having to make adjustments to their Publisher built web sites to make them
work with IE8. The pressure to sort this out will soon increase - Microsoft
have just announced that IE8 is to be rolled out as a forced update next
week. Coincidentally, they have also said a patch for Publisher will also be
out next week, but you can almost be certain you will have to do all this
again when IE9 comes out, and there will be no patches to fix the problems
with older versions of Publisher.
Standards? As David says, who needs them? Well - the truth is that
standards-based web pages will suffer none of these problems, and you could
update and fix them if necessary with virtually any standards based tool
(Notepad!). That's what they are for. If there is a problem with display in
any particular browser - then you can rest assured that the fault is with
the browser and not your web page.
you *can*
produce cross browser compatible webs with Publisher 2000, 2002, 2003 and
2007, *IF* you know how to use the program properly.

Repeating himself:
You *can* build Publisher webs that are cross browser compatible. This is
not an opinion...
Yes it is, and it's wrong. Try asking Google - you may find this:
http://www.boutell.com/newfaq/creating/crossbrowser.html and this:
http://www.boutell.com/newfaq/creating/mspublisher.html among umpteen
others.

The real position here is that the best you can hope to achieve is pages
that are readable in various browsers (which is not quite the same thing as
cross-browser compatible) if you *don't use* certain features of the
program which are known to cause problems. I wouldn't call that "using the
program properly" - you'll find nothing in the documentation on what
"properly" in this context means.
In the end he can
offer no facts or rational, logical reasons for not using Publisher to
build webs,

Well, the facts that building web pages with Publisher causes people lots of
problems (which David is of course here to help with!) and generates
inefficient non-standard proprietary html which is at least ten times more
voluminous than it needs to be and often doesn't work in anything but
Microsoft's browser, and even sometimes in that - simply aren't good enough
for David, so what can I say.
Although I could also add that it's extremely limiting in what it allows you
to do do in your page designs as well, but it hardly seems worth it as it
still won't help. Rollovers, anyone? All those dangerous bits which you have
to put in embedded html fragments? Centreing pages properly? Being able to
determine the filenames of pages to match incoming links?
Finally, you cannot achieve valid compliant code, your pages will fail
accessibility tests and requirements, and here in the UK at least will
probably fall foul of the Disability Discrimination Act as a result and you
may lay yourself open to prosecution and heavy fines.
It's a long list and I could go on...
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 when did he ever suggest that using a different tool or learning html
coding might be the best approach?
However, I refuse to engage him directly...

Well from my point of view that looks rather more like self-preservation in
trying to avoid being made to look an idiot.
Your mileage may vary, but I'm sure that to more knowledgable readers he
actually manages to achieve that competently all by himself.
He has also twisted and distorted my position about the choice of using
Publisher to build webs.
No I haven't. I have simply highlighted the fact that your advice falls
somewhat short of the optimal in misleading people into thinking that
Publisher is a good tool to use by repeatedly saying that the problems it
generates are because of the failure of the user to "use it properly", which
is abject nonsense. Many people posting here are obviously just starting out
in using Publisher to make web pages - they deserve to be told that their
choice is not a good one for reasons which they are sure to discover for
themselves after spending innumerable hours going down the Publisher route.

Finally:
I have refuted each and proved them all to be spurious.

I would be really interested to hear where any of those proofs are!
(Simple disagreement does not count as proof, by the way)
 
E

Eric James

I don't think anyone gives credence to his criticism. It can be
untrustworthy.

If there's anything I've said which you feel is incorrect please ask, and
given sufficient time I'll see if I can explain it to you.
I have to say though that I am getting a little tired of all this nonsense
when you can easily verify such things yourself, if you wish, which I'm sure
would be of much greater value to you than arguing with me.
 
R

Rob Giordano [MS MVP]

but this is why you have problems...IE may forgive unclosed html tags, other
browsers wont.

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






Don Schmidt said:
Eric,
Just consider us as revolutionists, armed and dangerous.
 
R

Rob Giordano [MS MVP]

ok I give up; you don't have to properly close html tags
you also don't need doctypes
you don't even need to wonder why both those Publisher sites have over 500
errors when validated
you may not even care about accessibility
doesn't matter if they only run in Quirks mode as long as it works for you
go for it.



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

DavidF

Oh come on Rob. Since the centering code does work in IE, FF, Safari, Opera
and Chrome, and those browsers make up 99.4% of the browsers used, I think
the risk is fairly remote and acceptable. And even if it didn't work, the
worse that is likely to happen is the page will end up left justified.

Reference: Browser Statistics:
http://www.w3schools.com/browsers/browsers_stats.asp

Theory is one thing, but the reality is the code works, even if it isn't
'properly' written.

You have been helpful to this group in the past, but continuing to argue
this point in spite of the facts is far from helpful. Don't you think it is
about time for you to give up on this?

DavidF

Rob Giordano said:
but this is why you have problems...IE may forgive unclosed html tags,
other browsers wont.

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

Eric James

Full marks for effort Rob, but as we have all seen DavidF seems to be
unbelievably impervious to new knowledge, facts, conventions, standard ways
of doing things or even common sense.
You are lucky in that he doesn't seem to have resorted to labelling you a
'troll' yet. All this would simply be just amusing were it not for the net
effect of wasting a considerable amount of peoples' time and probably money.
Even so, it does offer some nuggets of humour - the contention that if a
tool isn't good enough for the job, it's the user's fault was quite a good
one, and it wasn't long ago that he was adamant that Microsoft would soon
realease a patched IE8 to fix Publisher's problems. I'm still waiting for an
explanation of what the 'weight' of a picture is and how it can be adjusted
too, come to think of it.
I've no idea what his motivation in repeatedly parroting his second-hand
recipes with no real understanding of the underlying issues or consequences
really is - maybe he's just trying to get an MVP award. Some hope.
I also wonder what he'll be saying when those who have built web sites in
Publisher have to rebuild them yet again because of changes in the next
version of Firefox, say.
The contradictions and errors are there for all to see though - and continue
to grow in number. In one post he'll advise that Publisher is an excellent
tool for building web sites, and one of its greatest strengths is that you
don't need to understand or edit html. In the next he'll say that you
actually can't do whatever you want in Publisher, and need to modify your
page design. Then he'll follow that up by saying that to do something else
you need to modify the html code, and provide a terrible way of doing it.
And if you dare to suggest that he might be just a little bit misguided and
that there are in fact numerous better ways, all you get in response is a
stream of nonsense and abuse.
 
D

Don Schmidt

Eric,

Do you have a relative by the name of Sara; or maybe Sarah? If not, I think
we may have found an elusive DNA match.
 
T

trehook

In Dreamweaver select the code view to look at your actual code.
Find your table (<table>). Inside the table tag you probably see
something like: <table align="center"> or some similarity. Next to
maybe try to add this:
<table valign="middle" align="center">. If middle doesnt work then try
center as I dont remember off hand which one it is. But "align=" is
for horrizontal alignment and "valign=" is for vertical alignment.
maybe that will work for you.
I might be wrong about the above. valign may not work in the actual
table but instead in the <td>. Sorry if I'm confusing you.
Below is a working example.

<table border="0" cellpadding="0" cellspacing="0" width="100%"
height="100%"><tr><td align="center" valign="middle">
<table border="1" width="300"><tr><td>Hey look at me! I'm in the
middle!</td></tr></table>
</td></tr></table>

for more detail go to my group..http://groups.google.com/group/trevor-
hook

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

--
Don - Publisher 2000®
Vancouver, USA


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

DavidF

Chuckle...she was from the UK ;-).

She certainly was the most disruptive troll I have ever experienced. But I
doubt anyone in this group will remember her other than you and I. How long
ago was that? 4 or 5 years ago?

By the way, did you know that the beginnings of the code snippet(s) we now
use for centering Pub web pages started with David Bartosik at least 6 years
ago? He posted the code to center Pub 2000 pages. I bet he never expected
that he would create this kind of uproar this many years later.

DavidF
 
E

Eric James

By the way, did you know that the beginnings of the code snippet(s) we now
use for centering Pub web pages started with David Bartosik at least 6
years ago? He posted the code to center Pub 2000 pages. I bet he never
expected that he would create this kind of uproar this many years later.

Then why don't you look up and read what he has actually said? Or is your
problem in basic comprehension?

Try here:
http://www.textndata.com/articles/web-design/center-pages-pubsligher-2002-a-33758/
...where it is explicitly stated that the <center> tag goes after the <body>
tag, and an additional </center> tag is required at the end, which is not by
any means what you have said - and also, correctly, that the <center> tag is
deprecated and may not work. That was in 2004!

Not to mention this http://www.justskins.com/forums/center-89946.html where
he explicitly says DON'T put the <center> tag outside of the <body> block.

Muppet.
(no sorry... that's insulting to muppets, which I'm sure are mostly
intelligent creatures!)
 
M

Mike Koewler

David,

I remember Sarah, she was actually a fairly nice person outside of the
NG. I also recall DavidA.

Mike
(Who has been swamped since the first of the year!)
 
A

Amy

Hi Don/Spike,

I am working with MS Publisher 2003 and I replaced </head> with
</head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>
as suggested by you and Spike. But this is not replaced in the file.

I am new to this and the file type created by Publisher is:pub not html. I
am not even able to save or open it as html file. Any advice how to make
this work?

Thanks
 
D

Don Schmidt

Amy,

Publisher creates the htm files and to view them you use IE (or other
browser). Publisher will open only .pub files.

The </head> changes are done in the htm files; by opening the htm files with
Notepad but it is easier to use the ReplaceInFiles program.

Post your site address so we can take a look at what is happening.
 

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