Microsoft KB Archive/212577

= PUB2000: How Publisher Determines the Width of a Web Page =

Article ID: 212577

Article Last Modified on 6/29/1999

-

APPLIES TO


 * Microsoft Publisher 2000 Standard Edition

-



This article was previously published under Q212577





SYMPTOMS
When you use Publisher to create a Web page, and then view that Web page using different Web browsers, some Web browsers may put a horizontal scroll bar across the bottom of the Web page while others may not.

In addition, some pages in a multiple-page Web site may have horizontal scroll bars and others may not, even though all the pages are the same size in Microsoft Publisher.



CAUSE
When Publisher exports a page as a HyperText Markup Language (HTML) document, it places all the elements on your publication page into cells in a big HTML table. Publisher includes codes specifying how wide and tall (in pixels) each table cell should be. Publisher determines the width of this HTML table by the following:
 * 1) Measuring the distance between the left and right margins of the page.
 * 2) Including the width of any objects that overhang the left or right edges of the page (but not objects that are entirely off the page.)
 * 3) Creating the HTML table based on a conversion factor of about 100 pixels per inch.

This means that if your publication page is seven inches wide, but has a picture frame that overhangs the right edge of the page by one inch, the HTML table will be about 800 pixels wide.

In theory, if your Web page is 800 pixels wide, and you display it in a window that is only 500 pixels wide, your browser should display a horizontal scroll bar, regardless of what is on the page. However, different Web browsers handle empty table cells differently. If your browser puts empty table cells together, a Web page with a lot of text on it may be displayed with scroll bars, but a sparser Web page of the same absolute width may be displayed in a more condensed format without scroll bars.



RESOLUTION
This symptom is a characteristic of some web browsers and may vary depending on different video resolution configurations for each system. It is not limited to HTML documents created in Publisher. You cannot predict which Web browser your audience will use, nor can you predict what screen resolution they will use.

To minimize the chance of this happening, create your Web site publication with a page width of six inches or less. This creates HTML tables that are about 600 pixels wide. This will prevent the scroll bars from appearing in a majority of browsers on most computer displays.

Additional query words: w_mspub mspub internet explorer ie3 netscape navigator gold pro 3.0 3.x 2.x 2.0 1.0 mosaic surfing surfer world-wide web www squished too wide 4.0 ie4 pub9 pub2k 2k 2000 9.0

Keywords: kbinfo kbweb kbprb kbhtml KB212577

-

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

© Microsoft Corporation. All rights reserved.