Lozenge
The Lozenge macro creates a lozenge button with an optional link that's ideal for highlighting important information or directing users to additional resources. It is designed for small amounts of content (although the width can be changed to accommodate more content if required). This is to ensure that the content contained within the lozenge is concise and, in turn, leads to an improved user experience.
Learn more here about how to use each of our macros to increase functionality, engagement, and collaboration within your Confluence.
Add a Lozenge to your page
Colors
There are nine colors to choose from for the left section of the lozenge, and two colors for the arrow.
| Color | No Arrow | Blue Arrow | Green Arrow |
|---|---|---|---|
| bronze | |||
| silver | |||
| gold | |||
| blue | |||
| cyan | |||
| green | |||
| purple | |||
| pink | |||
| red |
Basic lozenge
Create a simple lozenge as follows:
Published Result
Add an Icon
Any images you add are not held within the macro. You need to provide a URL for the image. One way to do this is to add the image to the page as an attachment. You can then use the URL for this image in the Icon field.
Put the URL for your image in the icon field.
Published Result
Add a label
If you want text to show in the left-hand section you can just input that text into the Icon field.
Published Result
Lozenge Links
When a link is added to the lozenge, it displays a blue arrow by default:
Published Result
The title is linked so that browsers with JavaScript disabled can still follow the link. If a title is not specified, the link will disappear so browsers without JavaScript won't be able to follow the link.
If you want a different color arrow or no arrow, select the option you want from the Arrow field.
Published Result
Lozenge Width
By default, all lozenges are 347px wide. However, they can be stretched to fit their contents.
For a lozenge that changes size to match the size of the content and the webpage type auto into the Width field.
You can also set a percentage width, for example, 70%:
Or, a pixel width, for example 200px: