Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

172
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda