how do i make my webpage center i webbrowsers??

S

Spike

To all the contributors on the center function process:
A good collaborative effort by all:
Boiler plate (latest version 11/18/2009)
Copy, Modify, Post .... Whatever you wish to do with it.
==================================
Centering Publisher built Web Sites pages:
==================================
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


Setup the Replace in files program

Find: = </head>

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

File Types: = *.htm or *.html (what ever one you are using)

In Folder: = Select the folder where you published the htm / html files

Check the Replace In Subfolders box

The settings will remain until you change them


Then after running the repalce in files program (Replace All) ftp the files
to your server


Spike
 
D

DavidF

And though I know you like the terse approach, perhaps you could incorporate
Maureen's instructions on how to use replaceinfiles. Seems to me that
inserting the code manually is not a realistic workaround, and that people
need to know how to use replaceinfiles to make this whole thing practical.
The one thing to note in the instructions is that Publisher 2000 users tend
to use .html as a default vs .htm...

Work up the boilerplate and post it if you will, and perhaps we as a group
can offer some edits and come up with some boilerplate we can all use...

DavidF
 
D

DavidF

Spike,

I will check over your boilerplate later, but I just thought of a problem
with use the long string of code for Publisher 2000 and 2002 users...they
don't know the pixel width of their pages. Pixel dimensions was incorporated
in Pub 2003, but before that we had to use inches. I will think about how
this may affect our plans, but since few people use Pub 2000 or 2002
anymore, perhaps assuming that people are using Pub 2003 or 2007 is the way
to go. The user will post back if they aren't...

DavidF
 
D

Don Schmidt

Spike,

Many thanks for the Instructions, 'created a file copy for 2003 & 2007
responses.
Also, did the mod for Publisher 2000 & 2002 sites and created a response.

Ciao,
 
S

Spike

David

To use the long code in 2002 multiply the width in inches by 96 and insert
that number. Have not tried 2000 (do not have it handy)
1 inch = 96 pixels

Spike
 
D

DavidF

That will do it. I saw your modified instructions and think they should do
the trick. Thanks.

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