print friendly .CSS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I use two CSS pages with media print and screen command. In my print .css I
want only the iframe printed. It's placed in a cell of a two-column, two-row
table.

How do I make sure that the css ensures that during printing everything is
ignored except the content of the iframe (an other webpage).
 
I don't understand what you mean.

This is what I use now.

BODY {
font-family: Verdana;
font-size: 8pt;
}
TABLE {
display: none;
border-collapse: collapse;
cellpadding: 0px;
height: 100%;
font-family: Verdana;
font-size: 8pt;
list-style-type: disc;
cellspacing: 0px;
}

When I use this. Nothing shows. But I want it to show just one cell that
contains an iframe with the name "CMP_frame". Everything else in the table
must not show up in the print.
 
Try this -

BODY {
font-family: Verdana;
font-size: 8pt;
}
TABLE {
border-collapse: collapse;
cellpadding: 0px;
height: 100%;
font-family: Verdana;
font-size: 8pt;
list-style-type: disc;
cellspacing: 0px;
}

td {
display:none;
}

td.special {
display:block;
}


And then in your HTML you would have this -

<table...>
....
<tr>
....
<td class="special"><iframe....></td>
....
</tr>
</table>
 
Back
Top