Level Text and Image
The element Sidebar
has been specialized in Paligo to serve both as a separate component (called floating sidebar) and as a general-purpose reuse wrapper element, see Create an Informal Topic. Find out more about Common General Elements.
The default setting for a sidebar
is one column, with a gray background, a visible black frame and the text above the image. By adding a role attribute that divides the sidebar into two columns, the image and text inside it will be leveled with one another and the frame and background color
is removed. You need to add one sidebar for each text and image pair.


Note
To make this work in HTML output, you have to assign the sidebar a role, like "sidebar-css" and target that role with your CSS. Make sure to enable the role attribute as "class name" in the layout for the HTML / HTML5 configuration. Learn more about Role Attribute Values.
This example code will give the text 75 % of the sidebar width.
.sidebar-css { padding: 6pt; width: 75%; display: flex; }
The instruction below shows how to level text and image for PDF output. You must publish the topic to be able to see the result.
-
Open the topic via the The Content Manager.
-
Place the cursor where the
sidebar
element is to be inserted in the topic. -
Display the Element Context Menu by pressing:
-
Windows: Alt + Enter ⏎
-
Mac: Command ⌘ + Enter ⏎
-
-
Enter
sidebar
and select it from the menu. -
Add a
title
(optional), apara
and amediaobject
by using the Element Context Menu. -
Select the
sidebar
in the Element Structure Menu below the toolbar. -
Select Go to element.
-
Add the attribute
role
to the sidebar element. -
Enter the value column-count: 2; column-gap: 10pt.
-
Select Save.