Creating Fixed Width Content

How can I set content to remain centered in the page, at a fixed width?

The Confluence documentation does this, but my attempts to use 'sections' and 'columns' have proved unsuccessful.

https://confluence.atlassian.com/display/DOC/Confluence+Documentation+Home

1 answer

1 accepted

0 votes
Accepted answer
Davin Studer Community Champion Jul 07, 2014

I would create a user macro that you can use to wrap around your content to be centered. Also in the user macro would be some CSS styles to do the centering.

Davin Studer Community Champion Jul 07, 2014

You could also try the Content Formatting Macros. It gives you all sorts of html macros such as div, span, style, etc. You could create a div maco and set the id in the macro properties. Then create a style macro and target that div to center the contents.

Thank you. I was hoping there was some more straight foward way - I figure it is a canned layout they are using, but my installation doesn't provide. I went ahead and just tossed a `div` in with some styling to accomplish the effect -- just have to remember to add it to each page now.

Hm, thought I had. A wayward double click on the check perhaps. :)

Davin Studer Community Champion Jul 08, 2014

Feel free to mark the question as answered. Thanks. :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,305 views 91 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you