Instantly share code, notes, and snippets.
A bit of CSS to hide the Quick Launch (i.e. left navigation menu) on SharePoint 2013 and O365 sites. Just add a Script Editor Web Part to any zone of your page and insert this code. For convenience, I tend to rename the Script Editor Web Part "CSS."
Works for Team Sites and Blog sites on SharePoint 2013 and O365. Works on Publishing Sites that use the "Blank Web Part page layout." May work on others as well. Probably works on any layout with zone to which you can add Web Parts.
Adjust the #contentBox margin-left attribute (set to 0px, in the example) to add left margin, if your content ends up being too close to the left edge of the screen.
Added a display:none for div.welcome-content, which takes up space across the top of some pages (between the SharePoint logo and the first Web Part zone). If you use .welcome-content in your designs, you'll need to remove that bit.