Skip to content

Instantly share code, notes, and snippets.

@Marfjeh
Created March 6, 2018 13:28
Show Gist options
  • Save Marfjeh/1e7ef0ace25952828b6172fc161332a1 to your computer and use it in GitHub Desktop.
Save Marfjeh/1e7ef0ace25952828b6172fc161332a1 to your computer and use it in GitHub Desktop.
<style>
@media print {
.no-print { display: none; }
}
@media screen {
.print-only { display: none; }
}
</style>
<p class="no-print">Press Ctrl+P to print</p>
<table class="print-only"><!-- Stuff --></table>
<script>window.print()</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment