I made a page contains specific control, and i used CSS and it works okay and applied on the page, but when i print the control which contains my data , no effect to the CSS on the paper . what is the problem ? the control exists in div.
Asked
Active
Viewed 1,022 times
0
-
What kind of effect is it and what code are you using for it? – Pekka Feb 24 '11 at 13:24
-
What happens if you put all your CSS rules inside an "@media all { }" block? (Should make no difference, but if it were me I'd try it.) – Pointy Feb 24 '11 at 13:25
-
3If you mean no background images are printed it's the default browser behavior and there's nothing you can do. Otherwise please give more details. – Shadow The GPT Wizard Feb 24 '11 at 13:26
-
sorry meant background in general, images *and* colors. http://support.microsoft.com/kb/296326 see my answer as well. – Shadow The GPT Wizard Feb 24 '11 at 13:42
3 Answers
2
have you used @media
inside the css source or the media-attribute eg media="screen"
inside the html source code? that might be the reason.

Daniel Kutik
- 6,997
- 2
- 27
- 34
2
Background colors and images won't be printed by default by most browsers.
IE reference: http://support.microsoft.com/kb/296326
Firefox reference: How do I Make Firefox Print a Background-Color Style?
Easy enough to find for any other browser if you want.

Community
- 1
- 1

Shadow The GPT Wizard
- 66,030
- 26
- 140
- 208
1
Check this interesting read at A List Apart: http://www.alistapart.com/articles/goingtoprint/
It is a comprehensive guide at using print style sheets.

Sander
- 1,244
- 1
- 12
- 24