# How can I make mdframed boxes break at the bottom of the page? [closed]

I'm trying to get mdframed to split at the bottom of my page, such that there is no white space between the bottom of the frame and the footer. At the moment I have this:

I'd like to have mdframed split right at the bottom of the white space, instead of leaving a gap between it and the bottom border. Is there a way to do this?

-

## closed as too localized by Joseph Wright♦Aug 5 '12 at 9:24

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

use \enlargethispage{2cm} –  Marco Daniel May 15 '12 at 15:53
Ah!, thank you very much. That works like a charm on the first page. Can I do something similar if the mdframed splits over more than one pagebreak? –  ezietsman May 15 '12 at 17:28
Please try: \makeatletter\preto\mdf@put@frame@ii{\enlargethispage{2cm}}\makeatother and after \end{mdframed} you must reset it \enlargethispage{-2cm}. –  Marco Daniel May 15 '12 at 17:38
Using the above the command: \makeatletter\preto\mdf@put@frame@ii{\enlargethispage{2cm}}\makeatother` the mdframed do not change, regardless of the value inside \enlargethispage –  ezietsman May 15 '12 at 21:21
Can you provide a MWE please. –  Marco Daniel May 18 '12 at 12:35