kev1807
kev1807

Reputation: 87

Prevent cut-off lines when using css media @ print

I have the problem when I modify a website's print output: So, if you go to this link: https://exist.ulb.tu-darmstadt.de/2/v/pa000008-0120 and hit [Ctrl+P] (I don't know about apple :-D ) you should see a 26 page long preview of the so-called Restitutionsedikt.

  1. I cannot figure out how to prevent the cut-off line in Line 39. :-/ I'vre tried to add the following (the display:block; either enabled or disabled; both won't work.

    p{ /* display:block */
    page-break-inside:auto; }

Any hints on how to make this work properly?

All the best, K enter image description here

Upvotes: 0

Views: 639

Answers (1)

Nick Vu
Nick Vu

Reputation: 15540

I think this solution can help you

@media print {
  * {
    break-inside: avoid;
  }
}

Upvotes: 2

Related Questions