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
Popular Pages
- Fast rounded corners in Photoshop (7423 recent visits)
- PHP – passing variables across pages (2558 recent visits)
- JavaScript set selected on load (2413 recent visits)
- Removing all child nodes from an element (1828 recent visits)
- Firefox 3 smart address bar: wildcard search (1755 recent visits)
- iPod songs out of order? (1314 recent visits)
- Britney - Everytime piano tab (1137 recent visits)
- MySQL LEFT JOIN syntax (884 recent visits)
- Firefox 3 smart address bar: wildcard search (722 recent visits)
- Date difference in MySQL (651 recent visits)
Similar Entries
- Swap banner image with CSS and PHP (190 recent visits)
- CSS class, or HTML tag? (4 recent visits)
- CSS font-size dialogue! (31 recent visits)
- Misleading CSS link declarations (3 recent visits)
- CSS print style sheet (5 recent visits)
- CSS adjacent sibling selectors and IE 6 (83 recent visits)
Stats
0 unique visits since Oct27 '05