Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @page {
- size: auto;
- margin: 10mm 10mm 10mm 10mm;
- }
- /* A4 210x297 mm */
- @media print and (min-height: 266mm) and (max-height: 288mm) and
- (min-width: 179mm) and (max-width: 201mm) {
- .img_port {
- height: 267mm !important;
- }
- }
- .img_port {
- height: 267mm !important; /* might also try height: 100%; */
- page-break-after: always;
- page-break-before: always;
- page-break-inside: avoid;
- }
- img{
- page-break-inside: avoid;
- padding:0; margin:0;
- top:0; left:0; right:0;bottom:0; border:0;
- /*width:2480px; height:3508px!important;*/ /*a4 size */
- width:100%; height:100%; max-width:100% important!
- }
- .page-break { display: block; page-break-before: always; }
- @page {
- size: landscape;
- }
- @page :first {
- margin-top: 10cm /* Top margin on first page 10cm */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement