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 7605727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:14:23+00:00 2026-05-31T00:14:23+00:00

In Firefox the page-break-after: always; directive is working fine. However, this same code is

  • 0

In Firefox the page-break-after: always; directive is working fine. However, this same code is seemingly ignored by IE. To test, copy and paste the code into a new HTML document before saving and then testing the print preview. During print preview, I want the page-break-after directive to actually do what it says, like it does in Firefox.

The entire code below:

<html>
<head>
<style type="text/css">
body
{
    margin: 0;
    font-style: verdana;
    font-size: 12px;
    clear: both;
}
div.header
{
    display: block;
}
div.header img
{
    height: 160px;
    display: block;
    margin: 0 auto;
}
div.left
{
    float: left;
    width: 40%;
    min-height: 550px
}
div.right
{
    float: left;
    width: 40%;
    display: block;
    margin-left: 40px;
    min-height: 550px;
    page-break-after: always;
}
div.last
{
    min-height: 550px;
    width: 100%;
    display: block;
    clear: both;
    margin-bottom: 20px;
    page-break-after: always;
}
div.images
{
}
div.images img
{
    max-height: 240px;
    margin: 10px;
    display: block;
    margin: 0 auto;
}
img.smaller
{
    padding-bottom: 10px;
}
h3
{
    font-weight: bold;
    display: inline;
}
h3.blurb
{
    display: block;
    margin-bottom: 5px;
}
hr.line
{

}
span.blurb
{
    display: block;
    border: 1px solid #000;
    padding: 2px;
    word-wrap: break-word;
}
span.memories
{

}
span.activities
{

}
span.university
{

}
span.children
{

}
span.hobbies
{

}
span.volunteer
{

}
</style>
<!--[if IE]>
<style type="text/css">
div.left
{
    height: expression( document.body.clientHeight > 550 ? "550px" : "auto" );
}
div.right
{
    height: expression( document.body.clientHeight > 550 ? "550px" : "auto" );
}
div.images img
{
    height: expression( document.body.clientHeight > 240 ? "240px" : "auto" );
}
img.smaller
{
    display: block;
    padding-bottom: 10px;   
}

img
{
    text-align: center;
}
</style>
<![endif]-->
</head>
<body>
<div class="header"><img src="https://www.google.com/images/srpr/logo3w.png" /></div>
<div class="left">
    <h3>Name:</h3> Lorem ipsum dolor sit amet, consectetuer adipiscing eli
    <hr class="line" />


    <h3>Current Name:</h3> Lorem ipsum dolor sit amet, consectetuer adipiscing eli
    <hr class="line" />

    <h3>Address:</h3> 2345 Vivamus et Tellus Street
    <hr class="line" />

    <h3>Home Phone:</h3> 9096761212
    <hr class="line" />

    <h3>Cell Phone:</h3> 9096761212
    <hr class="line" />


    <h3>Email:</h3> lipsum@marius.com
    <hr class="line" />

    <h3>Employer/Retired:</h3> Lorem ipsum dolor sit amet, consectetuer adipiscing eli
    <hr class="line" />

    <h3>Job Title:</h3> Lorem ipsum dolor sit ame
    <hr class="line" />

    <h3>Are you planning to attend reunion?</h3> Yes
    <hr class="line" />


    <h3 class="blurb">Memories:</h3>
    <span class="blurb memories">None provided</span>

    <h3 class="blurb">Student Activities/Clubs:</h3>
    <span class="blurb activities">None provided</span>
</div>
<div class="right" style="page-break-after: always;">
    <h3>Major:</h3> Lorem ipsum dolor sit ame
    <hr class="line" />


    <h3>Spouse/partner name:</h3> Lorem ipsum dolor sit amet, consectetuer adipiscing eli
    <hr class="line" />

    <h3>Spouse/partner employer:</h3> Lorem ipsum dolor sit amet, consectetuer adipiscing eli
    <hr class="line" />

    <h3>Spouse/partner job title:</h3> Lorem ipsum dolor sit amet, consectetuer adipiscing eli
    <hr class="line" />

    <h3 class="blurb">Spouse/Partner University and Class Year:</h3>

    <span class="blurb university">Lorem ipsum dolor sit amet, consectetuer adipiscing eli</span>

    <h3 class="blurb">Children (list names/ages):</h3>
    <span class="blurb children">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, Sed quis nunc, Aliquam</span>

    <h3 class="blurb">Interests/Hobbies:</h3>
    <span class="blurb hobbies">Lorem ipsum dolor</span>

    <h3 class="blurb">Volunteer Work (include services):</h3>

    <span class="blurb volunteer">None provided</span>
</div>
<div class="last" style="page-break-after: always;">
    <h3 class="blurb">Life since</h3>
    <span class="blurb life">None provided</span>
</div>


<div class="header"><img src="https://www.google.com/images/srpr/logo3w.png" /></div>
<div class="left">
    <h3>Name:</h3> Lorem ipsum dolor sit amet, consectetuer adipiscing eli
    <hr class="line" />


    <h3>Current Name:</h3> Lorem ipsum
    <hr class="line" />

    <h3>Address:</h3> None provided
    <hr class="line" />

    <h3>Home Phone:</h3> None provided
    <hr class="line" />

    <h3>Cell Phone:</h3> None provided
    <hr class="line" />


    <h3>Email:</h3> None provided
    <hr class="line" />

    <h3>Employer/Retired:</h3> None provided
    <hr class="line" />

    <h3>Job Title:</h3> None provided
    <hr class="line" />

    <h3>Are you planning to attend reunion?</h3> Yes
    <hr class="line" />


    <h3 class="blurb">Memories:</h3>
    <span class="blurb memories">None provided</span>

    <h3 class="blurb">Student Activities/Clubs:</h3>
    <span class="blurb activities">None provided</span>
</div>
<div class="right" style="page-break-after: always;">
    <h3>Major:</h3> Lorem ipsum dolor sit ame
    <hr class="line" />


    <h3>Spouse/partner name:</h3> Lorem ipsum dolor sit amet, consectetuer adipiscing eli
    <hr class="line" />

    <h3>Spouse/partner employer:</h3> Lorem ipsum dolor sit amet, consectetuer adipiscing eli
    <hr class="line" />

    <h3>Spouse/partner job title:</h3> Lorem ipsum dolor sit amet, consectetuer adipiscing eli
    <hr class="line" />

    <h3 class="blurb">Spouse/Partner University and Class Year:</h3>

    <span class="blurb university">Lorem ipsum dolor sit amet, consectetuer adipiscing eli</span>

    <h3 class="blurb">Children (list names/ages):</h3>
    <span class="blurb children">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, Sed quis nunc, Aliquam</span>

    <h3 class="blurb">Interests/Hobbies:</h3>
    <span class="blurb hobbies">Lorem ipsum dolor</span>

    <h3 class="blurb">Volunteer Work (include services):</h3>

    <span class="blurb volunteer">None provided</span>
</div>
<div class="last" style="page-break-after: always;">
    <h3 class="blurb">Life since</h3>
    <span class="blurb life">None provided</span>
</div>
</body>
</html>
  • 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-31T00:14:25+00:00Added an answer on May 31, 2026 at 12:14 am

    Apologies for answering a question with a question, but could it be because the page-breaks are being applied on positioned elements?

    MSDN clearly states that

    Page breaks are not permitted inside positioned objects.

    http://msdn.microsoft.com/en-us/library/ms530842(v=vs.85).aspx

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

Sidebar

Related Questions

The CSS page-break-after attribute looks like what I want. Is it? This is an
This page displays beautifully in firefox but i get all kinds of problems when
Firefox has this nice find-a-text-on-the-page dialog, which is non-modal and shows up at the
If you look on this page here in Firefox (I'm on 3.5.2 on a
This code works only if I reload/refresh page, otherwise it doesn't work, I susspect
I have this code in my ASP.NET MVC project master page: <% switch(Request.Browser.Browser) {
break line tag is not working in firefox, neither in chrome. When i see
My CSS for golf scorecard is <style type=text/css media=print> BODY { PAGE-BREAK-BEFORE: always; width:100%;
When I refresh a page with Firefox, the values of the check boxes, input
I have written a ruby script which opens up dlink admin page in firefox

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.