I create a table where I cycle between giving each tr the class “odd” and “even”. In my stylesheet I’ve got this:
table tbody tr.odd {
background-color: #cccccc;
}
This works from the browser but not when printing. Everything else in my media stylesheet works except this background-color.
I have colors enabled for printing, I can print images with colors… so?
By default, most browsers ignore CSS background colours and images when printing. This can only be overridden by changing the setting in the browser, if the browser even has such an option (some don’t, as Quentin points out).