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 Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,053 views 16 14
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