Skip to content

Instantly share code, notes, and snippets.

@saltun
Last active November 29, 2019 00:40
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 saltun/27698424d2de901d32e933be52570d56 to your computer and use it in GitHub Desktop.
Save saltun/27698424d2de901d32e933be52570d56 to your computer and use it in GitHub Desktop.
HTML No Print Element
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test Page - Savaş Can ALTUN / savascanaltun.com.tr</title>
<style type="text/css">
@media print{
.no-print, .no-print *
{
display: none !important;
}
}
</style>
</head>
<body>
<h1>Savaş Can ALTUN</h1>
<a onclick="javascript:window.print();" class="no-print">Print</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment