Solved

Div border closes and repeats on pagebreak possible?

Posted on 2012-03-12
1
161 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Changing Two Areas of a Page 5 32
Hiding Adsense on Mobile Devices 2 46
Make footer stick to bottom 6 27
Bootstrap 3 - Style a dropdown 1 25
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
This article discusses four methods for overlaying images in a container on a web page
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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…

735 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