Page Break
Asked by Lui Jimenez:

In the new editor page for confluence, the "div" macro which allowed you to create a page break with a simple code (page-break-before: always;) in CSS style was removed.  
How can we create a page break in the middle of the page? Which macro should i use?

Can the div macro be reinstated? Ill include the screenshot of the macro i used to use.![Annotation 2019-02-15 103639.png](/t5/image/serverpage/image-id/45884iC090F21679DFF56E/image-size/large?v=v2&px=999 "Annotation 2019-02-15 103639.png")


Answers:
author: ervinhaley
body: Thanks very much!


author: ervinhaley
body: Thanks very much!

[drift hunters](https://drift-hunters.io)


author: Sireesha Dugginapeddi [Appfire]
body: Hi [@Lui Jimenez](/t5/user/viewprofilepage/user-id/2459109)

You can try using ***Other Macros \> Formatting \>*** ***Divbox*** instead. Add *page-break-after:always;* similar to what you did with *div*. You might see a border and some background color in the page. Add *background-color:transparent; border: 0px*additionally to your styling to avoid seeing the border and background color.

Refer to [this](https://docs.refinedwiki.com/display/rwot/Divbox) page for more information.

Good Luck!

Thanks

Sireesha

comments: author: Lui Jimenez
body: [@Sireesha Dugginapeddi \[Appfire\]](/t5/user/viewprofilepage/user-id/1260000) The ***Other Macros \> Formatting*** does not exist in the New Editing Experience.  
Is it called something else? If you have it, can you include a screenshot using the new editing experience page?

Thank you


author: Sireesha Dugginapeddi [Appfire]
body: Hi [@Lui Jimenez](/t5/user/viewprofilepage/user-id/2459109)

I am afraid there is no other way you can introduce a page break as a user. I have tried many other options myself and some suggestions on community, but looks like all of them need additional plugins or macros.

And I am sorry about divbox suggestion - I found this on one of the forums. I just looked for it in my 'new editor experience'. I didn't find it either. Probably, it is not available natively in Confluence cause, there is a reason why Atlassian removed it from the list in first place.

Is there anyway you can contact your Admin and ask him/her to create the [pagebreak](https://confluence.atlassian.com/confkb/how-to-create-a-page-break-function-in-confluence-to-control-pagination-in-pdf-exports-735943076.html?_ga=2.85187678.631115396.1550480779-748161253.1533556773) user macro for you? It is super simple and shouldn't take more than 5 min. Find it in my first reply.

Here is one more suggestion you can probably check using PDF Stylesheet settings (in case you are a space admin, assuming you have your own space) - <https://community.atlassian.com/t5/Confluence-questions/Insert-page-breaks-in-a-page-export/qaq-p/337306>.

Sireesha


author: Lui Jimenez
body: Thank you for your time and effort. I could contact my admin for confluence; however, it looks like Atlassian is going to discontinue 'Create your own macro' feature effective March, 2019.

I really hope they add back the div macro, is there a place we can submit this ticket/issue for them to review and reply?


author: Sireesha Dugginapeddi [Appfire]
body: Yes! You can view existing tickets and open a new ticket with Atlassian [here](https://jira.atlassian.com/projects/CONFCLOUD/issues/CONFCLOUD-7247?filter=allopenissues). Thanks!


author: Sireesha Dugginapeddi [Appfire]
body: Hi [@Lui Jimenez](/t5/user/viewprofilepage/user-id/2459109)

As a Confluence user, you can always include a new div macro into your page wherever you need a page break and add *page-break-before: always;* in the **style** parameter of the macro.

As an Admin you can:

**Create a user macro** , by navigating to ***Settings \> General Configuration \> User Macros \> Create a user** macro*. Define the macro by providing the following details

* Macro name - pagebreak
* Select the *No Macro Body*option
* In the Template section, add the following

```
## @noparams
<div style="page-break-before:always;"></div>
```

**Customize PDF settings** , defining the page height, width, page numbers, headers and footers etc... You can do so by navigating to ***Settings \> General Configuration \> PDF Layout*** or ***Space Tools \> Content Tools \> Export \> PDF**.* In this case, the page break is based on the settings you apply in your PDF export configuration.  
For more details about PDF Export settings, please refer to <https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html>.

Hope one of these methods works for you!

Thanks

Sireesha

comments: author: Lui Jimenez
body: Hi [@Sireesha Dugginapeddi \[Appfire\]](/t5/user/viewprofilepage/user-id/1260000)

thank you for your reply, but my issue is that in the new confluence style page, the div macro was removed so i dont have the ability to add one. Was this a mistake by Atlassian or done on purpose?

Im hoping the div macro gets added back. Is there another way to get this done? Unfortunately im not an admin user to be able to create macros.


author: Lui Jimenez
body: ![Annotation 2019-02-18 112840.png](https://community.atlassian.com/t5/image/serverpage/image-id/46069i2C5643B151586CB5/image-size/large?v=v2&px=999 "Annotation 2019-02-18 112840.png")


Tags: cloud

confluence-cloud