Simple question: how do I get my document/page to centre. I've applied the Theme Builder theme, but can't work out how to centre the layout of the page as opposed to it being justified left. Thanks.
|
|||||||
Adaptavist Theme Builder Powered by Atlassian Confluence |
Comments (11)
Feb 11, 2008
Guy Fraser says:
Use the Page Alignment option on the Options Tab to set the overall page alignme...Use the Page Alignment option on the Options Tab to set the overall page alignment:
Then set the width of the "Page" panel (using the Panel Editor on the Layout Tab) to something other than 100%.
Feb 26, 2008
Carl U says:
Ah ha! Editing the width of "document" in the layout editor made the page 100%....Ah ha!
Editing the width of "document" in the layout editor made the page 100%. I was trying for the longest time to find out what the heck was causing it to have that margin.
btw - center page didn't seem to work for me in ffox/safari in beta 27/28.
Feb 26, 2008
Alain Moran says:
editing the width of the 'document' should have no effect (I'd disable it, but f...editing the width of the 'document' should have no effect (I'd disable it, but for the amount of complications it would add to the code), however editing the width of the 'page' within the document should allow you to see the effects of the page alignment.
Feb 26, 2008
Guy Fraser says:
Actually, I'm finding page centering icky too. Would it be worth having the ali...Actually, I'm finding page centering icky too.
Would it be worth having the alignment of the page panel set the alignment of the document (or whatever)?
For example, click the page panel, center it and you get a centered page. Set it's width to 90% and you get 90% width page in the center, etc. It's not the page panel that would actually get those settings - from memory it's atb-shell or atb-document that needs to get the settigs, but the intuitive place to set the options is on the page panel.
Feb 26, 2008
Alain Moran says:
Can you expand on 'icky' .. i know I'm not fully uptodate with the latest techni...Can you expand on 'icky' .. i know I'm not fully uptodate with the latest technical terms, so you'll have to humour me with the long explanation.
The shell alignment sets the alignment of the main table, this does not set the alignment of the content, but the table itself (due to the way that browsers implement the table's align= property) ... using the alignment of the table is the only reliable way to actually get the content to display in the correct place in all browsers (eg IE5.5)
Feb 26, 2008
Alain Moran says:
I've tested the align code locally and can find no problems .. everything seems ...I've tested the align code locally and can find no problems .. everything seems to work as expected.
Can you create an issue on tracker.adaptavist.com attaching a backup of your layout data (or attach it here if it isnt confidential)
Feb 27, 2008
Carl U says:
It's working for me now - I do think it has something about setting widths in bo...It's working for me now - I do think it has something about setting widths in both document and page.
Mar 07, 2008
Klaus Stake says:
Hi, I tried all the ideas above and did not get it working. I could center my pa...Hi, I tried all the ideas above and did not get it working. I could center my page/document.
I've changed the Page Alignment to centre.
Changed width of page and document to 90%. I also changed the position of page and document to center. I've tried different browsers and cleared the browser cache. No luck. One other interesting thing is that it doesn't matter which width I configure. The actual width does not change somehow! (I've install Builder 3.0.0 from Plugin Repository)
Mar 07, 2008
Klaus Stake says:
Sorry. My fault. Forget to assign the edited layout to the space I worked in. No...Sorry. My fault. Forget to assign the edited layout to the space I worked in. Now it's working. Just a another problem... It look's like if at the right side is an additional space. This ways it's not really centered. I can't see the reason for the additional space at the right side
It look's the same in the layout editor's preview. Don't know what causes this.
Mar 07, 2008
Alain Moran says:
The additional space to the right hand side is because you set the document widt...The additional space to the right hand side is because you set the document width to 90% ... you should clear this value with the 'use default' link in the menu.
I should really disable the setting of the document width, however I'm sure that there must be some specialised case where it would be useful, possibly with small-screen layouts.
Mar 07, 2008
Guy Fraser says:
Both settings are required, however the way they play off each other is confusin...Both settings are required, however the way they play off each other is confusing.
@Alain: I'll try and write up a ticket in BSUP with a better explanation and possible solution...