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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

780 views 23 12
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