View Single Post
  #2 (permalink)  
Old Aug 22nd, 2006, 14:35
moojoo's Avatar
moojoo moojoo is offline
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,993
Blog Entries: 1
Thanks: 0
Thanked 32 Times in 32 Posts
Re: selective printing

You want to use a print style sheet. Make a sep css file and link to it like so. In that file you can specify your print properties, what elements are visible and not visible etc...

Code: Select all
<link rel="stylesheet" href="whateveritscalled.css" type="text/css" media="print" />
A print style sheet may look something like this:

Code: Select all
body {
    font-family: Times;
    font-size: 12px;
    color: #000;
}

#calendar, #sidebar, #nav, #navmenu, #menubar, #menubar li a, form, fieldset, legend, #footer, .view, .email, .directions, .directorylist, #sidebar, #sidebar li a {
    display: none;
    visibility: hidden;
}

a:link, a:visited, a:hover {
    color: #000;
    text-decoration: underline;
}

.memview {
    border:0;
    padding: 0;
}
__________________
I hate IE 6. Just sayin....
http://www.mevans76.com

Last edited by moojoo; Aug 22nd, 2006 at 14:39.
Reply With Quote