Skip to content

Instantly share code, notes, and snippets.

@Marfjeh
Created March 6, 2018 13:28
Embed
What would you like to do?
<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