Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

179
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda