CSS Hint of the Day

December 15th, 2005

This is the code I use to keep the sidebar (the narrow column at the right) from printing:

@media print
#sidebar { display: none; }

The “@media print” qualifier specifies that the enclosed style applies only when printing. The “display: none” turns off display of the element named #sidebar. It’s that simple.

2 Responses to “CSS Hint of the Day”

  1. brem Says:

    The one thing missing with CSS is the ability to create custom columns…

  2. Gngr (Ginger) Says:

    Ahh, thank you. :))