Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

171
Views
print div in group (html)

When I do print div, the signature and full name can be on 2 different pages. how do they always stay on the same page

@media print{
    body{ background-color:#FFFFFF; background-image:none;}
    #print-button{display:none;}
    html, body, table, p{ font-size:12.0pt; }
    input[type=text]{
        border:none;
        width:auto;
    }
    html, body {
        margin:0;
    }
    input[type=text][readonly]{
        background:none;
    }
}
@page {
    size: A4 landscape;   /* auto is the current printer page size */
    margin: 1.5cm 2cm 0cm 1.5cm;  /* this affects the margin in the printer settings */
}
<section class="footer">
        <div class="row">
            <div class="col-xs-6">
                //(1)
                <p><b><span>APPLICANTS</span></b></p>
                <p><span><i>(Sign and write full name)</i></span></p>
                <canvas id="sigCanvas" style="display:none;width:185px; height:79px"></canvas>
                <img style="height: 79px;width: 185px;" id="Signature_0" src="<?php echo SITE_ROOT . $PATH_PIC ; ?>">
                //(2)
                <p>
                    <input type="text" id="txt" value="full name 1"/>
                </p>
            </div>
            
        </div>
       
</section>
window.print();

when i run window.print(); (chrome) sometime text in (1) in page 1 and (2) in page 2. how to group (1) and (2) when printing html to pdf in chrome

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!