Page Setup

Office programs store page setup settings using both CSS and XML. Many Office page setup settings are intended to format printed output and might not be displayed when opened in a Web browser. However, the settings are saved in HTML to be used when the page is opened in an Office program.

Word

Word uses CSS and @page definitions to store section-level page setup settings. For more information about how Word stores page setup settings in HTML, see the Word Page Layout and Section Breaks topic.

Excel

Excel uses CSS and @page definitions to store some page setup settings and XML to store others. The following table lists the CSS attributes that describe Excel page setup settings.

Excel page setup setting Attribute that describes it
Page size size
Margins margin
Header margin mso-margin-header
Footer margin mso-margin-footer
Page orientation mso-page-orientation
Horizontal justification mso-horizontal-page-align
Vertical justification mso-vertical-page-align
Starting page number mso-page-number-start

Many of the Excel page setup settings that are stored using XML are contained in the Print element.

PowerPoint

PowerPoint has fewer page setup settings than Word and Excel and uses VML to save them to HTML. For more information, see the PowerPoint topics.