Monday, May 6, 2013

How To Hide The Quick Launch

There are scenarios where you need to hide the quick launch for a particular page and here is the code to do it!

<style>
#s4-leftpanel{
display:none
}
.s4-ca{
margin-left:0px
}
</style>
In order to use this code for a particular page you could drop this block of code into a text file and then link a content editor webpart to it or by embedding this code into the header of the page itself.  I know this is a short article, but hiding the nav bar is that easy!

Good Luck!
Dan

No comments:

Post a Comment