CSS "classitis" for a printing issue Oct27 '05

As a temporary solution to a small printing problem that some clients (on another site) were facing, I’ve started to apply a generic class of noprint to any element that I wish to "hide" from the printer, which is included in the print style sheet:

.noprint
{
    display: none;
}

This is handy, because I can simply apply it to any element:

<ul class="noprint">
    <li>...</li>
    <li>...</li>
</ul>

However, I’m not sure I like slapping in classes - left and right. I wouldn’t want to come down with a case of classitis.

Until a better solution can be figured out, this will have to do.

Categories: CSS

Add Feedback (view all)

Leave feedback

Feedback

Input format: The editor controls below will assist with Markdown syntax.

Status

Sub-status

Your info

Popular Pages

  1. Fast rounded corners in Photoshop (7423 recent visits)
  2. PHP – passing variables across pages (2558 recent visits)
  3. JavaScript set selected on load (2413 recent visits)
  4. Removing all child nodes from an element (1828 recent visits)
  5. Firefox 3 smart address bar: wildcard search (1755 recent visits)
  6. iPod songs out of order? (1314 recent visits)
  7. Britney - Everytime piano tab (1137 recent visits)
  8. MySQL LEFT JOIN syntax (884 recent visits)
  9. Firefox 3 smart address bar: wildcard search (722 recent visits)
  10. Date difference in MySQL (651 recent visits)

Similar Entries

Stats

0 unique visits since Oct27 '05

Recent Referrers (click)

Syndicate

Advertisements