Solved

Div border closes and repeats on pagebreak possible?

Posted on 2012-03-12
1
145 Views
Last Modified: 2012-05-02
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?

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

        }
0
Comment
Question by:gogetsome
1 Comment
 
LVL 30

Accepted Solution

by:
IanTh earned 500 total points
Comment Utility
I think your inner need to be min-height: outer div - margin and border  so it fits inside the outer container
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now