Skip to content

Instantly share code, notes, and snippets.

@muslih
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muslih/11118488 to your computer and use it in GitHub Desktop.
Save muslih/11118488 to your computer and use it in GitHub Desktop.
Cetak dengan page break
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Cetak dengan page break</title>
<style>
.halaman{
page-break-after: always;
page-break-inside: avoid;
}
</style>
</head>
<body>
<div class="halaman">
<h1>Ini akan muncul di halaman pertama</h1>
<p>
Ini adalah paragraf di halaman pertama dan Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora, recusandae repudiandae tenetur adipisci! Ratione, voluptatem, numquam, quis in mollitia vel nobis eum impedit enim minima non beatae debitis quod ut?
</p>
</div>
<div class="halaman">
<h1>Ini akan muncul di halaman kedua</h1>
<p>
Ini adalah paragraf di halaman kedua dan Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tempora, recusandae repudiandae tenetur adipisci! Ratione, voluptatem, numquam, quis in mollitia vel nobis eum impedit enim minima non beatae debitis quod ut?
</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment