• I have a JPG image in my header that does not show when printing. This is happening in IE and Firfox and with several templates including the default. I’m using WP 1.5. What do I need to do to get the image to print?

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter sedelstein

    (@sedelstein)

    Some more information . . .
    The image is in a print.css file with this line.

    #masthead {background-image: url(‘images/header.jpg’);}

    That same line is in the style.css. Actually, I have no idea what I’m doing with the print.css and styles in general. I used the instructions here: https://codex.www.ads-software.com/Styling_for_Print.

    I took the entire style.css and used in print.css hoping that I’d get lucky. Now the print looks close to the browser version, but again, the image doesn’t show.

    Thread Starter sedelstein

    (@sedelstein)

    Can anyone give me some ideas about the problem I’m having?

    I guess the themes (the computer?) are behaving very cleverly! If I want to print your post because of its content – I wouldn’t want to waste ink on your fancy header image… I just need the next ??
    So, I don’t see any problem.

    Hmm, if I’m not mistaken, any images displayed thru CSS won’t ever display in print.

    The solution would be to inline the image in header.php itself and then…bla..bla… (I’m not really interested to elaborate).

    No, when printing, the default setting is to not print background images, that’s why it doesn’t show up. ??

    You’re right thought that the easiest way is to just use an <img> tag in your header rather than giving the <div> a background image. That’s what I did. ??

    I still would find offending if printing your text would force me to waste ink on your big colour image… ??
    Bad, not user-friendly setup!

    Thread Starter sedelstein

    (@sedelstein)

    Thank you very much!

    Actually I think the setting for printing the CSS related images (like background-image) is found in your browser itself and not your CSS file (although if you have specified @media print{} then it needs to be in there, too).

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘No header cgraphic when printing’ is closed to new replies.