Hi,
I am having a similar issue. I tried incorporating the ideas above.. but cannot seem to make it work as I want.
On the page I have a javascript menu (AllWebMenu) and I do not want this printed when the part of the page between DIV tags is output. The menu is not between the DIV tags - but still prints!
I call my linked CSS script from within a table with:-
Code:
<div class="print" align="center"><?php include("fixtureswinter1.html"); ?></div>
The script is:-
Code:
body {
visibility:hidden;
}
.print {
visibility:visible;
width: 100%;
}
@media print {
* {
margin: 0 !important;
padding: 0 !important;
}
h1, p {
display: none;
}
table#hidden {display:none}
div#print {
display:block;
left: 0px;
top: 0px;
right: 0px;
bottom: 0px;
position: absolute;
height: 100%;
width: 100%;
}
.scorecard form {
border: none;
width: 100%;
}
}
@page {
margin: 0;
}
The menu in the table is called with:-
Code:
<span id='awmAnchor-nkmenu'> </span>
Any advice would be welcome!
Allan
Bookmarks