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).
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).
-
Select Layout in the top menu.
-
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.
-
Select Inline elements and then the category for the type of inline element you want to style, for example, guilabel.
-
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.
-
Select Save.
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).