The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence Questions alignment

Malik Mangier
July 6, 2020

Hi,

This question is in the context of using Confluence Questions but this may well also apply in the context of plain Confluence. Here's the situation:

When you look at the Confluence Questions page from the main Questions URL (like https://confluence.mydomain.com/questions) the page is well centred:

 

01-main_questions_page.png

But when you look at the Confluence Questions page from within a Confluence space (like https://confluence.mydomain.com/display/SPACE/questions/all), the content is aligned to the left alongside the sidebar:

03-Space-specific-questions-page-sidebar_collapsed.png

In looking at the page source for both, the main Questions page that has centered layout has a class called "aui-page-hybrid" that's aligning the content in the center. The pages Confluence page with the content left-justified is missing that.

So I used Firefox to inspect the Confluence web page (of type https://confluence.mydomain.com/display/SPACE/questions/all) and I injected the "aui-page-hybrid" in the body tag:

<body id="com-atlassian-confluence" class="theme-default aui-page-hybrid cq-spaced cq-body aui-layout aui-theme-default" data-aui-version="8.3.5">

As you see, now the page is centred (no more aligned on the left):

space-question-hybrid.png

 

Now here comes the question, how could this be made permanent exactly? (I couldn't figure this out from https://confluence.atlassian.com/doc/styling-confluence-with-css-166528400.html )

 

Thank you!

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events