[thelist] Using CSS to print portion of page!!

Tom Dell'Aringa pixelmech at yahoo.com
Wed Jul 9 14:01:07 CDT 2003


--- "Walter S. Hemingway" <walt at medianetwork.ws> wrote:
> Can any one guide me to tutorials on the print CSS features or does
> anyone know how I can just print a table on a page via CSS (or
> JavaScript)?

Walter, if all you want to do is print the table, you can set up a
simple print stylesheet that hides everything but the table. For
example:

print.css

#otherStuffOnPage { display: none; }

... other styles you need for your table to print...

And you are good to go, just make sure you include a LINK to your
print.css file.

Find out lots more here

http://www.alistapart.com/stories/goingtoprint/

HTH

Tom

=====
http://www.pixelmech.com/ :: Web Development Services
http://www.DMXzone.com/ :: Premium Content Author / JavaScript / Every Friday!
http://www.maccaws.com/ :: Group Leader
[Making A Commercial Case for Adopting Web Standards]

"That's not art, that's just annoying." -- Squidward


More information about the thelist mailing list