Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Div border closes and repeats on pagebreak possible?

Posted on 2012-03-12
1
Medium Priority
?
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 30

Accepted Solution

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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…
Suggested Courses

715 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