print friendly .CSS

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).
 
G

Guest

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.
 
M

Murray

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Print content iframe 7
how to ensure printing all text while using a css 2
CSS for printing 3
landscape orientation 2
Printing pages 1
CSS Table Question 6
CSS web page design 3
set css print page margins 4

Top