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

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

603 views 18 16
View question

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