FancyPrairie
Programmer
I have a outer DIV tag with several DIV tags within it (something like this)
<Div id=divOuter style="height:598">
<Div id=divTabControl style="display:block;height:591; top:5"></Div>
<Div id=divProject style="display:none; height:451; top:600"></Div>
<Div id=divUtilities style="display:none; height: 451; top:1200"></Div>
</DIV>
I'm simulating a tab control. So, if the user selects the first tab, the display style of divProject is set to block and its Top value is set so that it falls inside divTabControl. Likewise, when the user select the 2nd tab, the display style of divProject is set to "none" and the display size of divUtilities is set to "block" and its Top value is set so that if falls inside divTabControl. This all works fine.
My problem is, when I select Print from the File menu I want it to print as it is initially layed out, not like it's shown on the screen. That is, one DIV below the other. Like this:
<DIV id=divOuter...
<DIV id=divTabControl style="display: none"></DIV>
<DIV id=divProject style="display: block"></DIV>
<DIV id=divUtilities style=display: block"></DIV>
</DIV>
I set my style sheet like this (note that the first line works, but the others don't)
<style type="text/css" media="print">
#divTabControl{display: none}
#divProject{display: block}
#divUtilities{display: block}
</style>
What am I doing wrong?
<Div id=divOuter style="height:598">
<Div id=divTabControl style="display:block;height:591; top:5"></Div>
<Div id=divProject style="display:none; height:451; top:600"></Div>
<Div id=divUtilities style="display:none; height: 451; top:1200"></Div>
</DIV>
I'm simulating a tab control. So, if the user selects the first tab, the display style of divProject is set to block and its Top value is set so that it falls inside divTabControl. Likewise, when the user select the 2nd tab, the display style of divProject is set to "none" and the display size of divUtilities is set to "block" and its Top value is set so that if falls inside divTabControl. This all works fine.
My problem is, when I select Print from the File menu I want it to print as it is initially layed out, not like it's shown on the screen. That is, one DIV below the other. Like this:
<DIV id=divOuter...
<DIV id=divTabControl style="display: none"></DIV>
<DIV id=divProject style="display: block"></DIV>
<DIV id=divUtilities style=display: block"></DIV>
</DIV>
I set my style sheet like this (note that the first line works, but the others don't)
<style type="text/css" media="print">
#divTabControl{display: none}
#divProject{display: block}
#divUtilities{display: block}
</style>
What am I doing wrong?