Jump to content

Margins

From Simple English Wikipedia, the free encyclopedia

In typesetting, page margins (including page header and page footer) are considered the borders of a page of text, which separate the body of a page from the area outside of the regular text.

There are 4 main margins on a page:

  • top margin (or header) - the upper border of a page
  • bottom margin (or footer) - the lower border of a page
  • left margin - the left side border of a page
  • right margin - the right side border of a page

Additional margins can be used, beyond the usual four margins, to provide additional margin settings on a page.

In computer CSS styles

[change | change source]

For webpages, page margins can be set by using CSS style sheet directives, such as:

  • style="margins: 0.6em 0.7em 0.4em 0.7em" for margins: top, right, bottom & left.
  • style="margin-top: 0.6em" to set just the top margin.
  • style="margin-left: 0.7em" to set the left margin.
  • style="margin-right: 0.7em" to set the right margin.
  • style="margin-bottom: 0.4em" for the bottom margin.

Each page, and each image or formatted table on a page, can have the 4 margins set, separately.