Skip to main content

Set the Padding for Inline Elements

You can set each type of inline element, such as guilabel and guimenuitem, to have a specific amount of space before and after the element. For example, in the following image, there is a 2em space before an inline element and also after it. (This is quite a large amount of space, but used here to show where the spacing applies).

A paragraph that contains an inline element. There is a 2em space before and after the inline element. Callout arrows point to the spaces.

To control the amount of space before and after an inline element, use the Padding for <inline element> setting (where <inline element> is a specific element, such as guilabel). The space can help to make the inline element terms stand out more on a page, so that they are easy to pick out when skimming over the page rather than reading it in depth.

Note

For HTML outputs, use CSS to style the classes (see Style with CSS).

  1. Select Layout in the top menu.

    Paligo editor. The Layout option in the header menu is highlighted.

    Paligo displays a list of Layouts. The list is empty if there are no custom Layouts in your Paligo instance.

  2. Select the Layout you want to update or Create a Layout.

    Tip

    You can copy the URL of the Layout Editor and paste it into a new tab in your browser. This can be useful if you frequently switch between your Paligo content and the Layout settings.

  3. Select Inline elements and then the category for the type of inline element you want to style, for example, guilabel.

  4. Use the Padding for <inline element> setting to set the amount of space before and after every instance of the <inline element>. You need to enter a value and the units of measurement, such as, 0.5em or 1cm.

    For example, if you want to add 0.5em padding to all guilabel elements, you would enter 0.5em in the Padding for guilabel field.

  5. Select Save. Save icon.

When you publish using this layout, Paligo will apply the styling to the appropriate elements.

To learn about the other settings for PDF inline elements, see Inline Element Styling (PDF).