Skip to main content

Flow Text Around an Image

Using sidebars combined with images, you can get columns that adjust around an image for your PDF output.

Sidebar_three_columns_picture_small.jpg
Sidebar_Image_Para_small.jpg

To the left a three column page. To the right a one column page.

This instruction shows how to achieve a three column page where the text adjust around the image for your PDF output. By inserting a sidebar followed by an image and two more sidebars, you get an image next to a column with the following columns positioned below the image.

Tip

You can use sidebar borders when designing the page. After that you can remove the border setting from the role attribute.

  1. Select the topic or component in the Content Manager to open it in the Editor.

    Content Manager in Paligo. It shows the Documents section contains an Acme 100 Topics folder. Inside the folder there is a publication and many topics, including "Connect to Network (100).

    Alternatively, you can Create a Topic and edit that.

  2. Place the cursor where the sidebar element is to be inserted in the topic.

  3. Press Alt + Enter ⏎ (Windows) or Command ⌘ + Enter ⏎ (Mac) to display the Element Context Menu.

    Element context menu shows a search field and a list of elements that are valid at the current position.
  4. Enter sidebar and select it from the menu.

  5. Add a title (optional), a para and a mediaobject by using the Element Context Menu.

  6. Select the sidebar in the Element Structure Menu below the toolbar.

    Sidebar_GoToElement_small.png
  7. Select Go to element.

  8. Add the role attribute to the sidebar element.

  9. Enter the value float: start; width: 2in; padding: 2pt; border: thin solid black.

    This gives a thin black border with 2 pt space between the sidebar border and text. The border is optional, but the spacing will be used even if the border is removed. Depending on the image size, you might have to adjust the width for both the sidebar and the image. If the image is large, try with 25% or 50%.

    If you replace the value:

    • Solid with Dotted to get a dotted border.

    • Thin with Thick to get a thick border.

    • 2pt with 6pt to get more space (padding) between the text and the border. The spacing will be used even if the border is removed.

    • Black with Purple to get a purple border. You can replace it with any color.

  10. Fill the sidebar with text.

  11. Insert an image below the sidebar.

    Tip

    Add the element attribute:

    • align to adjust the positioning of the image.

    • width to set the image size.

  12. Insert two more sidebars, with the same role as above, after each other and fill them with text.

  13. To make the last sidebar end the page, change the value float: start to float: end

    Sidebar_three_columns_picture_small.jpg

    The result is an image next to a column with the following two columns positioned below the image.

  14. Select Save. Save icon.

Note

You have to publish or preview the topic to be able to see the result.

This instruction shows how to achieve a one column page where the text adjust around the image for your PDF output. By inserting a sidebar followed by an image and a para, you get an image next to a column with the text in the para positioned below the image.

Tip

This can also be done by using a two column sidebar, see Level Text and Image .

  1. Select the topic or component in the Content Manager to open it in the Editor.

    Content Manager in Paligo. It shows the Documents section contains an Acme 100 Topics folder. Inside the folder there is a publication and many topics, including "Connect to Network (100).

    Alternatively, you can Create a Topic and edit that.

  2. Place the cursor where the sidebar element is to be inserted in the topic.

  3. Press Alt + Enter ⏎ (Windows) or Command ⌘ + Enter ⏎ (Mac) to display the Element Context Menu.

    Element context menu shows a search field and a list of elements that are valid at the current position.
  4. Enter sidebar and select it from the menu.

  5. Add a title (optional), a para and a mediaobject by using the Element Context Menu.

  6. Select the sidebar in the Element Structure Menu below the toolbar.

    Sidebar_GoToElement_small.png
  7. Select Go to element.

  8. Add the role attribute to the sidebar element.

  9. Enter the value float: end; width: 250pt; padding: 2pt; border: thin solid black.

    This gives a thin black border with 2 pt space between the sidebar border and text. The border is optional, but the spacing will be used even if the border is removed. Depending on the image size, you might have to adjust the width for both the sidebar and the image. If the image is large, try with 25% or 50%.

    If you replace the value:

    • Solid with Dotted to get a dotted border.

    • Thin with Thick to get a thick border.

    • 2pt with 6pt to get more space (padding) between the text and the border.

    • Black with Purple to get a purple border. You can replace it with any color.

  10. Fill the sidebar with text.

  11. Insert an image below the sidebar.

    Tip

    Add the element attribute:

    • align to adjust the positioning of the image.

    • width to set the image size.

  12. Press Alt + Enter ⏎ (Windows) or Command ⌘ + Enter ⏎ (Mac) to display the Element Context Menu.

    Element context menu shows a search field and a list of elements that are valid at the current position.
  13. Enter para and select it from the menu.

  14. Fill the para with text.

    Sidebar_Image_para_black_border_small.jpg

    The result is an image on the left side of the column with the para text below it.

  15. Select Save. Save icon.

Note

You have to publish or preview the topic to be able to see the result.