Learn how to seamlessly migrate the Mosaic CSS and Div macros from Confluence Data Center to Cloud with our step-by-step guide. Ensure a smooth transition with clear instructions and best practices.
This step-by-step guide will walk you through the process of migrating pages containing Moasic CSS and Div macros from Confluence Data Center (DC) to Confluence Cloud.
Pre-Migration - Prepare for Migration
1. Audit of Macro Usage
Before beginning your migration, identify all pages using Mosaic macros, particularly any using nested macros. Our Mosaic Usage Report tool can help you do this by listing all pages containing Mosaic macros and showing their migration readiness status.
To use the Mosaic macro reporting tool:
Click the Cog>General Configuration in the top-right corner to open Confluence Administration.
Navigate to Mosaic Macros.
Click Mosaic Usage Report.
Click Start scan. The scan will begin.
Once the scan is complete, click to Download Report.
Take note of any pages using CSS or Div macros.
Migration - Migrating Pages with CSS and Div Macros
1. Run the Atlassian Confluence Cloud Migration Tool
Pages are imported into the new Cloud site using the Legacy Editor.
CSS and Div macros can be edited in the Legacy Editor.
From January 2026
Pages are imported into the new Cloud site using the Cloud Editor.
Mosaic Div macros appear as expected, preserving most of their functionality.
CSS macros are not editable.
2. Review Migrated Pages
Once the migration is complete, open the migrated pages that contain Mosaic CSS and Div macros.
Div Macros
Div macros should display as expected in both the Legacy and Cloud editors once migrated. These macros can still be edited in both editors.
CSS Macros
CSS macros display as expected in the Legacy editor. The CSS macro can be edited in the Legacy editor. Once a page is converted to the Cloud editor, the CSS macro no longer appears when editing a page and can therefore not be edited. Although the CSS macro cannot be edited, any Div macros using the previously applied CSS still work and appear as expected.
Post-Migration - Styling Macros in the Cloud Editor
After migration, any existing CSS styling will remain in a legacy macro but will not be directly editable.
For the best editing experience and access to the latest features, we recommend styling macros directly in the macro editor or using Mosaic’s Cloud HTML macro to create and style individual blocks of content.
1. Set Styling in Macros
In Confluence Cloud, you can now set the styling of Mosaic macros directly within the macro editor. This enhancement allows all users to easily customise the appearance of their pages without requiring any CSS knowledge.
To edit the design of a Mosaic macro (for example, Buttons):
Click on the macro in the Confluence Cloud editor.
Select Edit.
Adjust the styling options available in the macro editor under Appearance.
Managing the appearance of macros within the macro itself makes it easier to maintain consistent and visually appealing page designs while taking full advantage of Mosaic for Confluence Cloud’s built-in editing features.
2. Style a Page with the HTML Macro
Embed HTML code directly into your Confluence Cloud pages and set custom CSS styling with the Mosaic HTML Macro. This secure, lightweight editor lets you add HTML and CSS to your page, giving you precise control over layout and presentation. For details on the HTML macro, see our full documentation.
Need help migrating with Mosaic?
Whatever stage you're at, we're here to support your migration. Our team is happy to answer any burning questions or help you move confidently with Mosaic.