CSS: Print Background
- Started
- Last post
- 9 Responses
- aviary
Is there any way to make CSS print a background color/image for a certain style?
Everything is white.. I need a bg in spots.
- o0o0
"for a certain style" ??
"bg in spots" ??
not sure what you're asking.css can make a non-repeating bg.... but you can't position stuff in the background. You can make a large image with white space inbetween your images...
- aviary0
Sorry, I'm a bit frazzled this morning.
I have a DIV that needs to have its background (bg) color included for printout. It seems that when CSS prints it will, by default, ignore all background colors/images. I'm wondering if ther's a way around this.
- smokie0
its switched off by default in your browser, you have to inform users they need to turn on background printing unfortunately.
:)¬
- aviary0
Shit! Can someone confirm that there is absolutely no way around it? This is urgent.. if anyone knows...
- sp0
It has nothing to do with markup or styles, it is a browser setting. You will need to turn it on in each browser you use, in order to get it to print.
There might be a way to do it with CSS2 print functionality, but I don't know...for sure.
Have you tried searching Google for it?
- aviary0
Yes, tried google..
#@!&*
This really spoils my day.. a big headache.
If anyone has any other suggestions, feel free.
- xrusos0
go with the flow:
use @print css to change all your text to black to that it'll print alright.(but i'm very interested in a better solution)
- g0
I had the same problem. Can't get around it with CSS unfortunately.
Was a headache for me too. Fortunately I was able to convince the client of this and the work around was to create a print-only template using background images and fixed width. It was his idea so he could have a template on reserve for those pages that absolutely must print.
It's been my experience that this has to be considered and understood with the client in the beginning. It's definately a headache to have it be an issue post design lock and browser debugging.
- o0o0
does anyone know more about this? All the css2 stuff I've looked at just tells you how to make your pages more printer friendly --- I guess printing background colors is unfriendly... but I need to do that too...