Last active
August 29, 2015 14:00
-
-
Save muslih/11118488 to your computer and use it in GitHub Desktop.
Cetak dengan page break
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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