Limit page width

is it possible to set a page width on a confluence page?

I notice that the width of an articl on the confluence knowlege base itself is limited to 940px and I am trying to replicate something similar.

Ref page with fixed width,

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

3 answers

0 vote

I do not have edit rights to the particular page, so I can not see exactly what they have done. I assume they have made use of a column, which you can define to cover a set percentage of a page or a fixed amount of pixels. The column itself is being aligned in the center of the page. Please have a look at this page for more details on page layout and column width.

I tried that with no joy,

if you go to tools, view source you can see they havent nested everything in a column.

looking at the CSS it looks to be in the CSS on the main section in the custom.css file but I'm unsure how to add something like this to my setup?

/***************************************************
** MAIN 
***************************************************/

body#tinymce.fullsize, 
#main 
{
  margin        : 0 auto;
  width         : 940px;
  border        : 0;
  padding       : 20px;
  min-height    : 40em;
 }

Cheers,

Brett

Hi Brett Evans

I wonder where to put the CSS you mentioned above, as I tried to put in a CSS file then import but I failed.

It is great if you can show the full path to the file you add the CSS.

Thanks in advance :)

Was hopeing to do this without CSS, in the end i had to alter my designs to fit the limitation rather than change the CSS manually.

Was hopeing to do this without CSS, in the end i had to alter my designs to fit the limitation rather than change the CSS manually.

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 Friday 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...

278 views 11 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