Div border closes and repeats on pagebreak possible?

Hello, I have the following where I make a box with a small and thick border. Inside the inner div I have content where I have placed page-break-after:always where a pagebreak should be.

That works, but how can I close the border divs before and after the pagebreak?

            width: 800px;
            margin: 20px;
            border: 1px solid #000;
            min-height: 600px;
            width: 794;
            margin: 1px;
            border: 2px solid #000;
            min-height: 600px;
            margin-top: 5px;
            height: auto;
            border-top: 2px solid #000;
            padding: 40px 60px;

Who is Participating?
IanThConnect With a Mentor Commented:
I think your inner need to be min-height: outer div - margin and border  so it fits inside the outer container
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.