How to make Publisher webpage span full browser screen window?

I

Imran

I have designed my webpage using Publisher 2007. When I open the page using
Internet Explorer, the page appears to be left aligned. I want the page to
span the full browser window area.

I searched online for a solution and found one:
http://support.microsoft.com/kb/155091

But this did not help, as it made the webpage contents right-aligned in the
window. Could someone please help me fix this problem.

Thanks in advance.
 
D

DavidF

Publisher produces fixed width pages, that are left justified by design.

Reference: Understanding background padding in a Publisher web (aka white
space):
http://msmvps.com/blogs/dbartosik/archive/2006/01/07/80563.aspx

It is interesting that you found that old knowledge base article about
Publisher 97. I haven't seen that before. Note that KB article gives you
instructions on how to 'center' your pages, not 'span the full browser
window' or produce dynamic, variable width pages. That code will also work
on Publisher 2000 and we have found a variation of that approach that will
center Pub 2003 and 2007 pages.

When you "Publish to the Web" direct the output (the index.htm file and the
index_files folder if you are using the subfolder option) to a folder on
your computer where you can find it. Each of your *.htm files will require
adding a centering code after the existing </head> code.

If you want to do this manually, open each *.htm file in NotePad by right
clicking the file > open with > NotePad. If you are using the subfolder
option in Pub 2003 or 2007 your index.htm file is your home page and your
other *.htm files for your other pages are usually contained in a subfolder
called "index_files".

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

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

If you are using a page width that is different than 760 pixels, change the
width in the code string with the width of your web pages. Close NotePad and
save the changes. Repeat this with every .htm file.

Alternatively for a semi-automatic method of editing the code, download and
install the free "Replace In Files" program:
http://www.emurasoft.com/index.htm

Open "Replace in Files". The four boxes in the "Replace in Files" program
require the following information:

Find: </head>

Replace with: </head><table border="0" cellpadding="0" cellspacing="2"
width="760"align="center"><tr><td>
(Note: the code string may wrap in this message, but it should be just one
line. Also change the width to the pixel width of your web pages.)

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.

Assuming that you are using a subfolder, check the box at the bottom
"Replace in Subfolders".

Click "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 have to run Replace in Files each time you modify your Pub file and
produce new web files. However, once the options in Replace in Files are
filled out and the "Replace all" is selected, the entries are retained for
the next time you use the program and just require you to open and click
"replace all".

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