Sent by Joe Howley on 16 August 2002 21:09
> So I have constructed a whole website using a table layout.......
> (please no yelling)
Can we glare balefully? No, nevermind, it's not a problem. :)
> I understand that I may link to a seperate style sheet like so:
> <link rel="stylesheet" type"text/css" href="print.css" media="print">
Correct.
>
> how do I tag my content or how do I construct the style sheet to print
just
> the main content area that is contained within a table cell? <td> level?
>
So there is one TD which you wish to be the only printing td of the
table that makes up the page? First thing to do is make that cell
different from all other cells (why on this night, etc) with a class or
ID so that you can target it with styles. I suggest using class because
you can only have one ID per page, and if you ever write a page where
you want several tds to print, class will give you more flexibility.
So, give your td class="printing" or something like that. Here's one
simple print stylesheet you could then use:
td { display: none; }
td.printing { display: static; }
That makes all td elements non-displaying, except for the td with class
"printing", which it makes appear normally.
Hope that helps,
===
joe howley
http://joe.sameperson.net/