Forum How do I...?

content overflows beyond page size

vishnun
Hi

I have Prince installed on my Windows desktop ( 10 rev 2). I am trying to convert following XHTML here:

https://content.openclass.com/eps/pearson-reader/api/item/ab914c98-1923-486b-bdb4-b9187be18b9e/1/file/silverthornHP7-071415-MJ-BO/OPS/s9ml/chapter21/filep70004959340000000000000000070e1.xhtml

Note: this XHTML has references to different XHTMLs inside.

I am using the attached CSS.

When I see the output the content overflowing beyond margin / border.

Note: I am not a web developer so I have limited knowledge in CSS but currently learning CSS3 Paged Media.

Appreciate your help.

Thanks

Vishnu
  1. output.pdf2.0 MB
    output
  2. print.css0.4 kB
    CSS
mikeday
There is a rule in the CSS specifying "body > section { width: 940px }" which is too wide for paper.