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:
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:
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):
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!