PDA

View Full Version : How not to print background


links
05-02-2003, 02:56 PM
Hi

I have a Html Page that needs to be printed. In this page I Specify that a menu
that is in a <DIV> tag not be printed.But the fixed background still prints.

The code for the background is:

<STYLE>
BODY{BACKGROUND:url('bladesimg/fixedsign.png') no-repeat fixed -160px 200px;}
</STYLE>


WHY????

T. I. A.

Ernest

Roy Sinclair
05-02-2003, 03:39 PM
Limit the declaration of the background image for the appropriate media (screen) and then it won't be loaded for other medias (print).


<style>
@media = screen {
body{background:url('bladesimg/fixedsign.png') no-repeat fixed -160px 200px;}
}
</style>