I’m looking for an easy way to hide everything except a certain div and its contents.
Depending on your HTML structure (and browsers you need to support, because IE6 won't support this), you could hide all top-level divs and just show the one/few you want to show:
body > div { display: none; } #content { display: block; }