You are currently offline, waiting for your internet to reconnect

PUB98: How to Center a Web Page Created in Publisher

This article was previously published under Q195094
This article has been archived. It is offered "as is" and will no longer be updated.
When you view a Web Page created by Publisher 98 with a high- resolutiondisplay, the page may appear off-center to the left in the web browser. Toassure that the page appears centered regardless of the monitor'sresolution, you can manually add the <CENTER> tag to the HTML code.

WARNING: ANY USE BY YOU OF THE HTML CODE PROVIDED IN THIS ARTICLE ISAT YOUR OWN RISK. Microsoft provides this HTML code "as is" withoutwarranty of any kind, either express or implied, including but notlimited to the implied warranties of merchantability and/or fitnessfor a particular purpose.
Microsoft has confirmed this to be a problem in the Microsoft productslisted at the beginning of this article.
Publisher specifies the width of the Web Pages it creates. If youdesign a Web Page that is 6 inches wide, that page is 600 pixels widewhen you view it with a Web Browser. If your browser's window issignificantly wider than 600 pixels, (if you have a display setting of1024 x 768 pixels and are running your Web browser full-screen, forexample) the Web Page appears shifted over to the left.

If you design a page to fit well on a 640 x 480 screen, but suspectthat some of your audience may be using higher resolution displaysettings, you may wish to center your Web Pages.

Centering a Publisher-Designed Web Page

These directions assume that you have already used the Publish WebSite to Folder command on Publisher's File menu. They also assume thatyou have not used the Web Site Properties command (also on the Filemenu) to change the default Web Site naming convention.

  1. Start Notepad.
  2. On the File menu, click Open. Change to the folder to which you have published your Web Site.
  3. On the Open Files of Type list, click All Files.
  4. Click the file named Index.html, and click Open.
  5. Find the line near the beginning of the file that is similar to the following:
          <body bgcolor="#ffffff"  link="#0000ff" vlink="#ff0000"      text="#000000">						
    NOTE: The values for "bgcolor", "link", "vlink", and "text" may be different for your Web Page.
  6. Insert a new line immediately below this line. This new line should contain the text:
  7. Scroll down to the end of the file. Find the line that looks like this:
  8. Insert a new line immediately above this line. This new line should contain the text:
  9. On the File menu, click Save.
Repeat these steps for every file in the same folder with an .html oran .htm extension.

The original Publisher document will not reflect the changes made.Additionally, the updated ".html" and ".htm" documents will need to be re-posted to the server.

If you want to make more drastic changes to your Web Site, you maywant to open your Web Site in an HTML authoring or editing program, suchas Microsoft FrontPage.
98 5.0 off-center slouched pub98 pub5

Article ID: 195094 - Last Review: 12/05/2015 09:35:25 - Revision: 1.0

Microsoft Publisher 98 Standard Edition

  • kbnosurvey kbarchive kbhowto kbhtml kbinfo KB195094