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

352
Vistas
Divide the html page into several pages automatically like MS WORD

Is ther any way to divide a html context contained div, p and table tages into separated pages in separated div tages (or at least just separated) for a defined height? (like ms word but online)

I want to create an html template for formal letters that might have multiple pages. Expected a solution by using php or javascript or just html and css.

I use a persian font not english !

By the way, is there any other ways for creating those types of templates? (not using third party websites)... If yes, please give an example.

Note that I want to create pdf and image and ms word doc from that html too!

Thanks :)

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

with just html and css you can achieve it. look into my below code.

<style>

@media print {
    .pagebreak { page-break-before: always; } /* page-break-after works, as well */
}
</style>

<div class="container pageBreak">
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Reprehenderit necessitatibus nihil incidunt officia labore blanditiis atque soluta, optio laboriosam voluptates fugit, sint porro iure deleniti eveniet dolor voluptas, possimus repellat.
</div>
<div class="container pageBreak">
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Reprehenderit necessitatibus nihil incidunt officia labore blanditiis atque soluta, optio laboriosam voluptates fugit, sint porro iure deleniti eveniet dolor voluptas, possimus repellat.
</div>

you can either use ctl + p in windows or cmd+p in mac for printing pdf

about 4 years ago · Juan Pablo Isaza Denunciar
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