Forum Moderators: not2easy
Would it help to see the full HTML
maybe not the full HTML ;) - just the outline table code (with specific content removed) with it's classname intact just as you have it.
Be sure you show us everything between the <!Doctype.... and </head> tags too..
and tell us what browsers you have tried this in?
Thx
Suzy
<body>
<table class="noprint" width="565" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="565" height="81" valign="top"><input name="button" type="button" onClick="window.print()" value="Print Estimate">
</td>
</tr>
</table>
There you go. I have tried this in Mozilla, IE and Netscape. Thanks Joe
It looks like there may be some cascade overriding going on..
1.<link rel="stylesheet" media="print" src="noprint.css">
2.<link href="noprint.css" rel="stylesheet" type="text/css">
3.<style type="text/css">
<!--
@import url("noprint.css");
-->
</style>
There's 3 calls to the same stylesheet going on there and the first one is incorrect (src call instead of href), so delete it, then swap 2 & 3 like this, and add in the media attributes to them instead:
<style type="text/css" media="all"> @import "main.css"; </style>
<link rel="stylesheet" href="noprint.css" type="text/css" media="print">
main.css should contain the screen styling and noprint.css should only contain styles which will override them for printing if required.
Suzy
here's the test code I'm running.. does this work in your browser?
CSS Calls:
<style type="text/css" media="all">
table {font-family: verdana, tahoma, arial, sans-serif; font-size: 76%;}
</style>
<style type="text/css" media="print">
.noprint {display: none;}
</style>HTML:
<table width="50%" border="1">
<tr>
<td>print this one</td>
</tr>
</table>
<table width="50%" border="1" class="noprint">
<tr>
<td>don't print this one</td>
</tr>
</table>
<table class="noprint" width="565" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="565" height="81" valign="top"><input name="button" type="button" onClick="window.print()" value="Print Estimate">
</td>
</tr>
</table>
Suzy