Microsoft KB Archive/195094

= PUB98: How to Center a Web Page Created in Publisher =

Article ID: 195094

Article Last Modified on 11/12/1999

-

APPLIES TO


 * Microsoft Publisher 98 Standard Edition

-



This article was previously published under Q195094







SYMPTOMS
When you view a Web Page created by Publisher 98 with a high- resolution display, the page may appear off-center to the left in the web browser. To assure that the page appears centered regardless of the monitor's resolution, you can manually add the  tag to the HTML code.

WARNING: ANY USE BY YOU OF THE HTML CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this HTML code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



MORE INFORMATION
Publisher specifies the width of the Web Pages it creates. If you design a Web Page that is 6 inches wide, that page is 600 pixels wide when you view it with a Web Browser. If your browser's window is significantly wider than 600 pixels, (if you have a display setting of 1024 x 768 pixels and are running your Web browser full-screen, for example) the Web Page appears shifted over to the left.

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

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

 Start Notepad. On the File menu, click Open. Change to the folder to which you have published your Web Site. On the Open Files of Type list, click All Files. Click the file named Index.html, and click Open.  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. </li> Insert a new line immediately below this line. This new line should contain the text:

</li>  Scroll down to the end of the file. Find the line that looks like this: </li> Insert a new line immediately above this line. This new line should contain the text:

</li> On the File menu, click Save.</li></ol>

Repeat these steps for every file in the same folder with an .html or an .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 may want to open your Web Site in an HTML authoring or editing program, such as Microsoft FrontPage.

Additional query words: 98 5.0 off-center slouched pub98 pub5

Keywords: kbhowto kbinfo kbhtml KB195094

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.