Last active
November 14, 2017 12:34
-
-
Save fabianneve/1931d93e6d09bc2b76e891ed66c5d108 to your computer and use it in GitHub Desktop.
Script, which hides all navigation bars and starts the print dialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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