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

178
Vistas
CSS Print: break single table row

I need to print some data model. Model could have Compounding Instructions. It's a html content (could contain list items or paragraph, etc.). If Compounding Instructions content does not fit on the page I should break page and duplicate header "Compounding Instructions" on next page.

<table class="compounding-instructions">
  <thead>
    <tr>
      <th class="bold text-align-left">Compounding Instructions</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{user html content}</td>
    </tr>
  </tbody>
</table>

Case 1: if Compounding Instructions content could fit on one page it will wrap on next page (first image). I don't want it.

Case 2: I added table * { page-break-inside: auto; } or table thead { page-break-inside: auto; }. Compounding Instructions header does not showed on next page (second image).

I can use JavaScript

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