PDA

View Full Version : Supress printing of Tab Content



ahamilto
05-21-2009, 10:12 PM
1) Script Title: Tab Content Script (v2.2)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

3) Describe problem: This is an amazing and beautiful set of scripts and I am extremely happy with it as it appears on the web page.:) Here it comes...But when I print the page all of the Tab content from all of the tabs appears. Is there a way to suppress this so that only the current Tab content prints?:confused:

I really do hope so because, as I said, I LOVE this script!:D

Stalfos
05-21-2009, 10:28 PM
Actually, stuff with the CSS property "display:none;" should not be printed!
When I use "Print Preview", it only display the current viewable tab, at least, on the script page.

Does your page has a print style sheet? If so, your problem may lie there.

ahamilto
05-22-2009, 01:46 PM
I agree that the pages really don't need to be printed, unfortunately the folks I am designing this for tend to print the pages out to review them and have expressed their concern.

I really do appreciate your quick response!

ddadmin
05-22-2009, 06:45 PM
Try removing the following code within the .css file:


@media print {
.tabcontent {
display:block !important;
}
}


The above is what causes all contents to be printed out, for accessibility reasons.