Text is Pushed onto a New Line After an Image

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

The View File macros are going away in a future release

Read more about this change or find out about a better way to insert Office and PDF files

Problem

Text after an image is always pushed onto a new line after the image, even though in edit mode the text is displayed correctly.

  • image and text in edit mode

Image and text in edit mode
  • image and text in preview/view mode

(Auto-migrated image: description temporarily unavailable)

Diagnosis

Environment

  • Confluence Server

Diagnostic Steps

  1. Go to Administration > Add-Ons

  2. Select System from the dropdown

  3. Search for confluence-view-file-macro

  4. Confirm Add-on is deactivated

Cause

The confluence-view-file-macro includes CSS which overrides the regular CSS for attached images. Specifically a display: block.

Solution

Resolution

You will need to re-activate the confluence-view-file-macro

  1. Go to Administration > Add-Ons

  2. Select System from the dropdown

  3. Search for confluence-view-file-macro

  4. Click Enable

Updated on April 17, 2025

Still need help?

The Atlassian Community is here for you.