# <MarginOptions>

The MarginOptions element specifies options for handling margins and padding.

## Full element example

        <MarginOptions>
          <LeftRightMargins         value="keep"/>
          <LeftRightPadding         value="keep"/>
        </MarginOptions>

## Sub-element summary

Tag | Type | Default | Description
--- | --- | --- | ---
`<LeftRightMargins>` | value | keep | Whether to keep or ignore left and right margins. This option requires version 3.1 or later of iSiloX and iSiloXC.
`<LeftRightPadding>` | value | keep | Whether to keep or ignore left and right padding. This option requires version 3.35 or later of iSiloX and iSiloXC.

## Sub-element descriptions

### <LeftRightMargins>

Description
Set the value attribute of the tag to one of the following values to specify whether to keep or ignore left and right margins:

- keep: Keep all left and right margins.
- ignore: Ignore all left and right margins.
- IgnoreBody: Ignore left and right margins specified for the entire body of a page. In this case, blocks of content within a page retain their individual left and right margins.
- IgnoreBDP: Ignore only the left and right margins specified for the entire body of a page and for any blocks marked as divisions or paragraphs. Any other blocks of content within a page retain their individual left and right margins.

The default left and right margins are zero.

Examples
This example specifies that all left and right margins should be kept.

      <LeftRightMargins          value="keep"/>

This example specifies that all left and right margins should be ignored.

      <LeftRightMargins          value="ignore"/>

This example specifies that only left and right margins specified for the entire body of a page should be ignored.

      <LeftRightMargins          value="IgnoreBody"/>

This example specifies that only left and right margins specified for the entire body of a page and for blocks marked as divisions or paragraphs should be ignored.

      <LeftRightMargins          value="IgnoreBDP"/>

### <LeftRightPadding>

Description
Set the value attribute of the tag to one of the following values to specify whether to keep or ignore left and right padding:

- keep: Keep all left and right padding.
- ignore: Ignore all left and right padding.
- IgnoreBody: Ignore left and right padding specified for the entire body of a page. In this case, blocks of content within a page retain their individual left and right padding.
- IgnoreBDP: Ignore only the left and right padding specified for the entire body of a page and for any blocks marked as divisions or paragraphs. Any other blocks of content within a page retain their individual left and right padding.

The default left and right padding are zero.

Examples
This example specifies that all left and right padding should be kept.

      <LeftRightPadding          value="keep"/>

This example specifies that all left and right padding should be ignored.

      <LeftRightPadding          value="ignore"/>

This example specifies that only left and right padding specified for the entire body of a page should be ignored.

      <LeftRightPadding          value="IgnoreBody"/>

This example specifies that only left and right padding specified for the entire body of a page and for blocks marked as divisions or paragraphs should be ignored.

      <LeftRightPadding          value="IgnoreBDP"/>

©1999-2017 DC & Co. All rights reserved.