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.

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,691 views 25 10
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