Centering Webpage with different Resolutions

S

Swana

I've used the technique of creating blank white rectangles on either side of
my site so that when it appears in the browser it gives the impression of
being centred.

Which is fine on my comp at a high resolution. Problem is with lower
resolutions they are required to scroll across to view the website.
I know Publisher is not an advanced web editing tool but is there any other
way to make the centering more compatible with other resolutions?
 
R

Rob Giordano \(Crash\)

not really


| I've used the technique of creating blank white rectangles on either side
of
| my site so that when it appears in the browser it gives the impression of
| being centred.
|
| Which is fine on my comp at a high resolution. Problem is with lower
| resolutions they are required to scroll across to view the website.
| I know Publisher is not an advanced web editing tool but is there any
other
| way to make the centering more compatible with other resolutions?
 
G

Geoffrey

Swana,
You haven't specified which version of Publisher you're using, but here are
a few things to consider:

If you design your pages for 800 x 600, you CAN center your pages in any
resolution by inserting a <center> tag in the notepad file under the </head>
(that's end of head) tag, provided, however, that you DO NOT USE a background
image in your design. For if you have a background image instead of a plain
color, the body of the page will be centered but the image will stay
left-justified and may "ghost" at the right, depending on your image size.

With Publisher 2000, this is done after you "Save as web page", which
creates a "Publish" folder on your local disk. Before you copy and paste the
folder's content on the website server, you open the folder and double-click
on each HTML file -one at a time- to run the page on your local browser. Then
you click on >View>Source and in the source file you locate the </head> tag
and insert a <center> tag underneath it and click on >File>Save. You do this
on every HTML page from Index.html to the last page#.html. Then you can copy
and paste the lot to your server or via an FTP wizard if you use this
contraption.

If yours is a later version of Publisher, I've no idea whether it offers the
"Save as webpage" option or if it uploads the files directly to the server
via a wizard. In this case someone else may be able to explain a suitable
procedure.
 
N

Nancy

hey this may sound weird but I did this to center a website in Publisher
2003. Just let your text or picture boxes hang off the page about and inch
 
S

swana

I'm using Publisher 2003 with SP1.

I've tried editing pages before by inserting tags manually via notepad which
is fine it works. But its a pain in the arse to have to keep reediting each
page when ya save the file because it overwrites any changes.

I dont use the built in publishb to web function. I use a separate FTP
program.
 
P

Phill Jones

I'm using Publisher 2003.

I don't understand but this technique, of manually inserting <center> tags
doesn't work for me. Firefox just completely ignores them and left justifies
the page, as it did before. IE does something wierd, it seems like it centers
the page then inserts a large chunk of blank space to the left thereby
creating a page wider than the display and off center to the right.

It's not just one page, I've tested this on several pages and always get the
same result.
 
S

Spike

It appears that you were misinformed:

Publisher 2003 does not support the <center> code:

Please try this code:

Find the </head> code, and replace with:

</head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>

NOTE: the 760 is the width of the page. Replace 760 with the width of your
page if necessary

Spike
 
D

DavidF

You can also read a less concise description of the process of centering Pub
2003 and 2007 pages in my post:
Centering Pub 2003 and 2007 pages May 31st...or about 8 posts below this
one.

The process...or should I say the evolution of the process is ongoing. If
you do read the post, I would appreciate any comments about how the
directions could be more clear. Somehow I think that maybe Spike's answer is
the best...and takes a lot less time to read ;-)

DavidF
 
S

Spike

David

Thanks for the compliment BUT it is the result of many folks to get to where
we are today with what I posted. I have found out that many folks just want
an answer and not the evolution that took place to get the answer. (This
comes from 40+ years married to the same woman) Somewhere between verbose
and terse is the answer most are looking for. For me I like the answer and
the reasoning why that answer came to the table.

Happy centering ................

Spike
 
D

DavidF

Spike,

She has trained you well <g>.

I actually got some similar feedback recently, and I do tend to be too
wordy. But one of my pet peeves is asking a question on a newsgroup, and not
getting an answer that is complete enough for me to understand. In the
workup of the centering solution that I posted for comments, I tried to KISS
and at the same time write directions that were so complete that even a
total newbie could follow them, but that still ends up being a long, verbose
answer. I have already been told that it is too wordy...and not totally
clear.

It is a fine line to walk...and I fall off regularly. So I do appreciate you
and others jumping in and helping out, asking clarifying questions, or
answering posts yourself. After all, one of the primary reasons I am here is
to learn more about using Publisher for webs myself. Anyway, you do know
that you played an important part in the evolution of this workaround, and I
thank you for that.

DavidF
 

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