Setting document margins

A document’s margins are the blank space between its content and the left and top edges of the window. In most documents, the size of these margins is not specified, so browsers use their own default margins. However, you can specify the size in pixels of the left and top margins in the Styles tab of the Document Properties dialog box.

To set a document’s left and top margins
  1. On the Document menu, go to Property, click Document, and then click the Styles tab.
  2. Under Margins, enter a number of pixels in either or both of the Left and Top boxes to specify the left and top margin, respectively.

Alternatively, you can set a document’s margins by using the margin properties of cascading style sheets on the document’s <body> element. This approach is more flexible, because you can specify the length unit for the margin size and specify margins also for the right and bottom edges of the document.

To set a document’s margins using a style
  1. On the Document menu, go to Property, click Document, and thenvclick the Styles tab.
  2. Click the Add Style to <BODY> Tag button.
  3. Click the Borders & Background tab.
  4. Enter margin sizes for each side for which you want to specify a margin. (See “Setting margins, padding and borders“.)
  5. Click OK twice.
Related topics

Setting margins, padding and borders

Setting document margins