Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 552381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:29:37+00:00 2026-05-13T11:29:37+00:00

I am having a problem with a page because its longer than one page

  • 0

I am having a problem with a page because its longer than one page it break a table so it would be printed in two pages.
I would need to stop this from happening, but I don’t know how.
I tried

table { page-break-inside:auto }
tr    { page-break-inside:avoid; page-break-after:auto }

Which I saw in another question here but no luck so far.

I am working on IE7, but it has to work on IE6,IE7,IE8 mainly and others if possible.

Any recommendations?

Many thanks.


CSS

    /*Universal selector:
This rule set will be applied to every element in a document:*/
*
{
    margin:auto;
    padding:auto;
    /*text-align:center;*/
    font-size:1em;
    }

/*The folowing rule will help to minimaze the differences between browesers*/
h1,h2,h3,h4,h5,h6,pre,code,address,caption,cite,code,em,strong,th {font-weight:normal; font-style:normal;}
ul,ol {list-style:none;}
img {border:none;}
caption,th {text-align:left;}

table {
border-spacing:0;
font-size:1em; 
font-weight:normal; 
font-style:normal; 
font-family:Times New Roman;
page-break-inside:avoid;

}
tr{ 
    page-break-inside:avoid; 
    page-break-after:auto 
}

.divTitle{
        margin:10px;
    }
}
.title
{
    font-weight:bold;
    color:#0076BF;
    font-size:1.4em;
    font-family:Times New Roman;    
    }

.divContainer
{   
    margin:10px;
    background-color:#C7D8EE;
    border:2px solid #0076BF;
    text-align:left;
    overflow:visible;   
    }

    .tableContainer
{
    color:#0076BF;
    margin: -10px 0px -10px 0px;
    border-spacing: 10px;
    empty-cells:show;
    width:90%;

    }   

    .tableContainer tr td{
     white-space:nowrap;
    }

    .tableContainerRow2{
    background-color:white;
    border:2px solid #0076BF;

    }

.divBlueBarTitle{
        margin:15px 10px -7px 10px;

        background-color:#0076BF;
    }
.divBlueBarTitle font{
    font-size:1.2em;
    font-family:Times New Roman; 
    font-weight:bold;
    color:white;
    text-indent:10px;
}
.divContainerWhite
{   
    margin:15px 10px 0px 10px;
    background-color:white;
    text-align:left;


    }
    .tableContainerWhite
{
    color:#0076BF;
    margin: 0px 0px 0px -10px;
    border-spacing: 10px;
    width:90%;

    }   

  .tableContainerWhite td{
     white-space:nowrap;
    }


.footer {
    margin-top:40px;
    padding-bottom:20px;
    font-family: Arial, Helvetica, sans-serif;
    color: #303030;
    line-height: normal;
    font-size:smaller;
    text-align:right;
    width:95%;
}

HTML

  <body>
  <div class="divTitle">
    <font class="title"> Maternity  Diary Event</font>
</div>
    <!--Maternity Diary Event-->
  <div class="divContainer">
      <table class="tableContainer" cellspacing="10px">
          <tr>
              <td>NHS Number</td>
              <td>&#160;</td>
              <td>Date of Visit</td>
              <td>&#160;</td>
              <td colspan="3">Care Time Started</td>
              <td>&#160;</td>
              <td>&#160;</td>
              <td rowspan="2" style="font-weight:bold;vertical-align:middle;">Tick when<br/> care starts</td>
          </tr>
           <tr >
              <td width="90" class="tableContainerRow2">&#160;
              <xsl:value-of select="//MaternityDiaryEvent/NHSNumber"/>
              </td>
              <td >&#160;</td>
              <td width="80" class="tableContainerRow2">&#160;12/12/09</td>
              <td >&#160;</td>
              <td width="40" class="tableContainerRow2">&#160;12</td>
              <td  width="5">:</td>
              <td width="40" class="tableContainerRow2">&#160;10</td>                         
              <td >&#160;</td>
              <td style="text-align:right" >&#160;&#9745;</td>
          </tr>
      </table>
      <table class="tableContainer" cellspacing="10px" >
          <tr>
              <td></td>
              <td>Initials</td>
              <td>Surname</td>
          </tr>
          <tr>
              <td width="80" style="font-weight:bold;">Midwife</td>
              <td width="50" class="tableContainerRow2">&#160;</td>
              <td class="tableContainerRow2">&#160;</td>
          </tr>
          <tr>
              <td></td>
              <td>Initials</td>
              <td>Surname</td>
          </tr>
          <tr>
              <td style="font-weight:bold;">Doctor</td>
              <td class="tableContainerRow2">&#160;</td>
              <td class="tableContainerRow2">&#160;</td>
          </tr>
      </table>
      <table class="tableContainer" cellspacing="10px" >
          <tr>
             <td width="250">Forename</td>
             <td>Surname</td>
         </tr>
          <tr>
             <td class="tableContainerRow2">&#160;</td>
             <td class="tableContainerRow2">&#160;</td>
        </tr>
     </table>
     <table class="tableContainer" cellspacing="10px" style="margin-bottom:10px;" >
        <tr>
          <td width="90">Date of Birth</td>
          <td width="150"></td>
          <td width="100">Casenote No:</td>
          <td></td>
      </tr>
      <tr>
          <td class="tableContainerRow2">&#160;</td>
          <td></td>
          <td class="tableContainerRow2">&#160;</td>
          <td></td>
          </tr>
    </table>
 </div>
      <!--Site Visit-->
       <div class="divBlueBarTitle">
       <font>SITE VISIT</font>
      </div>
      <div class="divContainer">
      <table class="tableContainer" cellspacing="10px" style="margin-bottom:10px;">
          <tr>
            <td>Home</td>
            <td>&#160;&#9745;</td>
            <td>Blake Maty Centre</td>
            <td>&#160;&#9745;</td>
            <td>&#160;</td>
            <td>&#160;</td>
          </tr>
          <tr>
            <td>Consultant ANC</td>
            <td>&#160;&#9745;</td>
            <td>Grange Maty Centre</td>
            <td>&#160;&#9745;</td>
            <td>&#160;</td>
            <td>&#160;</td>
          </tr>
          <tr>
            <td>Midwifery ANC</td>
            <td>&#160;&#9745;</td>
            <td>MRMC/B5</td>
            <td>&#160;&#9745;</td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td>Day assessment Unit</td>
            <td>&#160;&#9745;</td>
            <td>Ports Maty Centre SMH</td>
            <td>&#160;&#9745;</td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td>Labour Ward</td>
            <td>&#160;&#9745;</td>
            <td>Posnatal Ward</td>
            <td>&#160;&#9745;</td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td>Antenatal Ward</td>
            <td>&#160;&#9745;</td>
            <td>Telephone Assessment</td>
            <td>&#160;&#9745;</td>
            <td>Other(give reason below)</td>
            <td>&#160;&#9745;</td>
          </tr>
          <tr>
            <td class="tableContainerRow2" colspan="6" rowspan="2">&#160;</td>
          </tr>  
         </table>
      </div>
      <div class="divContainerWhite">
          <table class="tableContainerWhite" cellspacing="10px" style="font-size:1.1em;">
            <tr>
                <td style="text-decoration:underline;font-weight:bold;white-space:nowrap;">Reason for Contact Booking:</td>
                <td>&#160;</td>
                <td width="150" style="font-weight:bold;">Gestation:&#160;Weeks:</td>
                <td width="30" class="tableContainerRow2">&#160;</td>
                <td width="50" style="font-weight:bold;">Days:</td>
                <td width="30" class="tableContainerRow2">&#160;</td>
                <td >&#160;</td>
            </tr> 
          </table>
          <table  class="tableContainerWhite" cellspacing="10px">
              <tr>
                  <td >Choice of Birth Offered</td>
                  <td>&#160;&#9745;</td>
                  <td >Domestic Violence Identified</td>
                  <td>&#160;&#9745;</td>
                  <td >Late Booker (&gt;&#160;11Wks&#160;6&#160;Days)</td>
                  <td>&#160;&#9745;</td>
              </tr>
              <tr>
                  <td style="white-space:nowrap">Contact Number Provided</td>
                  <td>&#160;&#9745;</td>
                  <td style="white-space:nowrap">Safeguarding Children identified</td>
                  <td>&#160;&#9745;</td>
                  <td>&#160;</td>
                  <td>&#160;</td>
              </tr>
          </table>
      </div>
      <div  class="divContainer">
      <table  class="tableContainer" cellspacing="10px">
      <tr>
        <td colspan="4" style="font-size:1.1em;text-decoration:underline;font-weight:bold;">Reason For Late Booking</td>
      </tr>
      <tr>
        <td width="200">Woman booked herself late</td>
        <td>&#160;&#9745;</td>
        <td colspan="4" style="white-space:nowrap;">&#160;&#9745;&#160;Other (give reason below)</td>

      </tr>
      <tr>
          <td>Recently moved to area</td>
          <td>&#160;&#9745;</td>
          <td rowspan="3" colspan="5" class="tableContainerRow2" >&#160;</td>
      </tr>
      <tr>
          <td>Transferred from another hospital</td>
          <td>&#160;&#9745;</td>
      </tr>
      <tr>
          <td>Late booking by Midwife</td>
          <td>&#160;&#9745;</td>

      </tr>
      <tr>
          <td>Intrapartum</td>
          <td>&#160;&#9745;</td>
          <td>Posnatal Admission</td>
          <td colspan="4">&#160;&#9745;</td>

      </tr>
      <tr>
          <td>Antenatal Admision</td>
          <td>&#160;&#9745;</td>
          <td>Intrauterine Transfer</td>
          <td colspan="4">&#160;&#9745;</td>
      </tr>
      <tr>
          <td >Antenatal Check Routine</td>
          <td >&#160;&#9745;</td>
          <td  style="white-space:nowrap;font-weight:bold;">Gestation:&#160;Weeks:</td>
          <td width="30" class="tableContainerRow2">&#160;</td>
          <td  style="font-weight:bold;">Days:</td>
          <td width="30" class="tableContainerRow2">&#160;</td>
          <td >&#160;</td>
      </tr>
          <tr>
            <td>Postnatal Check Routine</td>
            <td>&#160;&#9745;</td>
            <td colspan="2">Postnatal Check Other</td>
            <td>&#160;&#9745;</td>
            <td>Day</td>
            <td width="30" class="tableContainerRow2">&#160;</td>
            </tr>
        </table>
        <table class="tableContainer" cellspacing="10px">
          <tr>
            <td width="20%">Details</td>
            <td class="tableContainerRow2">&#160;</td>
          </tr>
        </table>
        <table class="tableContainer" cellspacing="10px">
          <tr>
            <td style="white-space:nowrap">Consultant Appt Made</td>
            <td>YES</td>
            <td>&#160;&#9745;</td>
            <td>NO</td>
            <td>&#160;&#9745;</td>
            <td width="50%"></td>
            </tr>
        </table>
      </div>
      <div class="divContainerWhite">
        <table  class="tableContainerWhite" cellspacing="10px">
            <tr>
                <td style="text-decoration:underline;font-size:1.1em;font-weight:bold;">Baby</td>
                <td>Routine Check:</td>
                <td>&#160;&#9745;</td>
                <td>Other Check</td>
                <td>&#160;&#9745;</td>
                <td>Day</td>
                <td width="30" class="tableContainerRow2">&#160;</td>
                <td>&#160;</td>
            </tr> 
            <tr>
                <td colspan="9">Details</td>
            </tr>
            <tr>
                <td colspan="9" class="tableContainerRow2">&#160;</td>
            </tr>
        </table>
        <table  class="tableContainerWhite" cellspacing="10px">
            <tr>
                <td colspan="6" style="font-size:1.1em;font-weight:bold">PUK</td>
            </tr>
            <tr>
                <td>Weight</td>
                <td>&#160;&#9745;</td>
                <td >SBR</td>
                <td>&#160;&#9745;</td>
                <td >&#160;</td>
                <td>&#160;</td>
            </tr>
            <tr>
                <td style="white-space:nowrap">Feeding Advice</td>
                <td>&#160;&#9745;</td>
                <td>Jaundice</td>
                <td>&#160;&#9745;</td>
                <td>&#160;&#9745;</td>
                <td>TICK ON LEAVING LOCATION</td>
            </tr>
        </table>
      </div>

    <!--Footer-->
    <div class="footer">
      © 2009 Graphnet Health Ltd. All rights reserved. | Disclaimer
    </div>

  </body>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:29:38+00:00Added an answer on May 13, 2026 at 11:29 am

    If it fits on a single page and you always want it to be on a single page, then I would try specifying page-break-before: always. This would force 2 pages at times when it possibly could have fit on one, but it should always keep the table on a single page, providing it fits.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having a problem with using session variables. I have two controllers named
I'm having a problem with an SQL query on a php page. I'm pretty
I'm having a weird problem, I have the following code in my page.php template
We're having problem with a huge number of legacy stored procedures at work. Do
I'm having problem in the following line: rd.PrintOptions.PaperSize = PaperSize.PaperFanfoldStdGerman; it throws an exception
Having a problem getting a TreeView control to display node images. The code below
Having a problem trying to create a function, as part of a BizTalk helper
Im having a problem with a final part of my assignment. We get in
We were having a problem with our build server not checking out modifications from
I'm having a problem with an application hanging and giving me the default Please

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.