Skip to content

Instantly share code, notes, and snippets.

@jofftiquez
Created January 19, 2023 06:12
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 jofftiquez/f43ee53c8316d5ec94387eab58d6e3a0 to your computer and use it in GitHub Desktop.
Save jofftiquez/f43ee53c8316d5ec94387eab58d6e3a0 to your computer and use it in GitHub Desktop.
Sample of printing without repeating stick header, and no repeating footer.
<table>
<!-- Header section -->
<thead>
<tr>
<td>
<div style="height: 100px; background: rgb(76, 164, 246);">
<h1>Header</h1>
</div>
</td>
</tr>
</thead>
<!-- Body or content section -->
<tbody>
<tr>
<td>
<div id="content"></div>
<script>
const element = document.getElementById('content');
for (let index = 0; index < 100; index++) {
element.innerHTML += `<p>Niaou muning nyav nyā mjau miauw myām̥ō. Mi'au meong meow miaou. Mjá miav miaou meow. Mi'au niaou muning nyā
meow njäu njäu meong miyāʾūṉ miaŭ. Miyav mi'au meow. Miyav meow mi'au nyā ngiyaw. Ngeung myau meo mjau. Miaŭ
muning meogre miaou miav. Mjá nyā nyā mjau mjá myau mjau mi'au mňau myau. Myām̥ō njäu miauw ya-ong meo njäu.</p>`;
}
</script>
</td>
</tr>
</tbody>
<!-- Footer section -->
<tfoot>
<tr>
<td>
<div style="height: 100px; background: rgb(169, 81, 246);">
<h1>Footer</h1>
</div>
</td>
</tr>
</tfoot>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment