backgroun color in media print

Giganews Newsgroups
Subject: backgroun color in media print
Posted by:  Petr Vileta (stou…
Date: Mon, 4 Feb 2008

I try to define this
@media print { {border: 1px solid black;
                            background-color: red}

and use it in html code by this way

<p>Color: <span class=red>&nbsp;&nbsp;&nbsp;</span> red</p>

If I do the same for @media screen then this work as expected, but not for
@media print.
I can't to find if this is feature or cross browsers bug ;-)

To explain what I can do: I want to create a small rectangle filled by some
color, in this example red. I tried to use span, div, table, p, but nothing
work for printer. What is the right way?

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail from
another non-spammer site please.)

Please reply to <petr AT practisoft DOT cz>