PDA

View Full Version : tabcontent page printing - CSS anyone?



langer
10-17-2007, 12:22 AM
1) Script Title: tabcontent

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

3) Describe problem: I have implemented this useful script and am now faced with the issue of printing what the user sees. Has anyone already implemented a CSS print for this?

Thanks.

Nicholas

ddadmin
10-17-2007, 11:04 AM
Inside the CSS portion of the script, add the below portion in red to it:


.tabcontent{
display:none;
}

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

This in fact will cause all the expand/collapsing DIVs' contents to be printed out, versus just the selected one's. The upside is that it's the easiest and quickest way to addressing the print issue with this script.