I have two DIV's on a page. Initially one (screenView) is in view and the other(printView) is hidden.
<DIV ID="screenView" STYLE="display: block;"></DIV>
<DIV ID="printView" STYLE="display: none;"></DIV>
I call a JavaScript function on load which sets the innerHTML of the two DIVS.
However, when the user chooses to print the page, I want the printView DIV to print. I have tried using style sheets as follows to accomplish this. I have the following in my head section:
<STYLE MEDIA="print">
/* hide the Screen view of the statement */
#screenView {display: none;}
/* display the print version of the statement */
#printView {display: block;}
</STYLE>
Do I need to do any more?? the screenView DIV is being printed when i try to print the page.
I know that I could use JavaScript to manually hide one DIV and show the other but I would like to use style sheets. Mise Le Meas,
Mighty
<DIV ID="screenView" STYLE="display: block;"></DIV>
<DIV ID="printView" STYLE="display: none;"></DIV>
I call a JavaScript function on load which sets the innerHTML of the two DIVS.
However, when the user chooses to print the page, I want the printView DIV to print. I have tried using style sheets as follows to accomplish this. I have the following in my head section:
<STYLE MEDIA="print">
/* hide the Screen view of the statement */
#screenView {display: none;}
/* display the print version of the statement */
#printView {display: block;}
</STYLE>
Do I need to do any more?? the screenView DIV is being printed when i try to print the page.
I know that I could use JavaScript to manually hide one DIV and show the other but I would like to use style sheets. Mise Le Meas,
Mighty