Forums

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

When using custom CSS export or a space, adding page numbers adds a page break after my TOCTitle

Hillary Hausler
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 5, 2020

I will add my CSS below.

For some reason, when I use the Confluence auto add page numbers option when exporting, it sends my TOC to the third page, with the TOCTitle on the second page, by itself. The cover page seems fine. 

I have some lines commented out because I am troubleshooting.

Any help is appreciated.

@page
{
size: A4 portrait;
margin-top: 5px;
margin-bottom: auto;

/* @bottom-center {
content: counter(page);
}*/
}

.fsTitlePage
{
margin-left: 5px;
margin-top: 5px;
margin-right: auto;
position: absolute;
left: 6px;
top: 6px;
z-index: -1;
}

.fsDocTitle
{
font-size: 24px;
font-weight: bold;
/*margin: 72px 0 4px 0;*/
text-align:left;
/*position: absolute;
left: 40px;
top: 40px;*/
page-break-after:always;
}

.tocTitle
{
font-size: 24px;
font-weight: bold;
margin-left: 6px;
margin-top: 6px;
}

Body
{
counter-reset: page;
}

h1::before {
counter-increment: page;
content: counter(page);
}

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, confluence whiteboards, whiteboard templates, template contest, visual collaboration, atlassian learning, confluence community, brainstorming tools, agile planning, team productivity, confluence templates, share your template

Share Your Confluence Whiteboard Template for a Chance to Be Featured in the Product! 🏆

Want to leave your mark on Confluence? One winner will have their whiteboard design added into Confluence for all users to access! This is your chance to showcase your creativity, help others, and gain recognition in the Confluence community.

Share your template today!
AUG Leaders

Atlassian Community Events