Skip to content

Instantly share code, notes, and snippets.

@fabianneve
Last active November 14, 2017 12:34
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 fabianneve/1931d93e6d09bc2b76e891ed66c5d108 to your computer and use it in GitHub Desktop.
Save fabianneve/1931d93e6d09bc2b76e891ed66c5d108 to your computer and use it in GitHub Desktop.
Script, which hides all navigation bars and starts the print dialog
<style type="text/css">
#suiteBar{
display:none;
}
#s4-ribbonrow{
display:none;
}
#s4-titlerow{
display:none !important;
}
#sideNavBox{
display:none;
}
#contentBox{
margin-left:0px;
}
.ms-viewheadertr {
display:none;
}
</style>
<script type="text/javascript">
window.onload = function() { window.print(); }
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment