472,096 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

how to force print of CSS background image?

Hi,

We have the following in our stylesheet, which acts as a page header:

#homepageheader { left: 0px; top: 0px; right: 0px; height: 183px;
background-image: url(graphics/header-salmoninbucket.jpg);
background-repeat: no-repeat; background-color: #B6C7B6; }

When you print, however, this doesn't appear.

Is there any way to force the print?

Thanks
Nath.
Mar 8 '06 #1
21 62656
tradmusic.com wrote:
#homepageheader { left: 0px; top: 0px; right: 0px; height: 183px;
background-image: url(graphics/header-salmoninbucket.jpg);
background-repeat: no-repeat; background-color: #B6C7B6; }

When you print, however, this doesn't appear.


Enable printing of backgrounds in your browser.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Mar 8 '06 #2
Without having to do that! :o)

Is it just not possible?

Nath.

"Johannes Koch" <ko**@w3development.de> wrote in message
news:44***********************@authen.yellow.readf reenews.net...
tradmusic.com wrote:
#homepageheader { left: 0px; top: 0px; right: 0px; height: 183px;
background-image: url(graphics/header-salmoninbucket.jpg);
background-repeat: no-repeat; background-color: #B6C7B6; }

When you print, however, this doesn't appear.


Enable printing of backgrounds in your browser.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)

Mar 8 '06 #3
"tradmusic.com" <sa***@NOSHPAMtradmusic.com> wrote in news:dumjin$339$1
@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com:
Hi,

We have the following in our stylesheet, which acts as a page header:

#homepageheader { left: 0px; top: 0px; right: 0px; height: 183px;
background-image: url(graphics/header-salmoninbucket.jpg);
background-repeat: no-repeat; background-color: #B6C7B6; }

When you print, however, this doesn't appear.

Is there any way to force the print?


You can't "force" anything. HTML/CSS is about suggestion. What you
are asking about is a function of the client which you have no control
over.

Now, I as a user can go into my print settings and set it to print the
background. Or, I can leave your page and print nothing at all.

--
Stan McCann, "Uncle Pirate" http://stanmccann.us/
Webmaster, NMSU at Alamogordo http://alamo.nmsu.edu/
Now blocking Google Grouper posts and replies.
http://blinkynet.net/comp/uip5.html
Mar 8 '06 #4
tradmusic.com wrote:
Hi,

We have the following in our stylesheet, which acts as a page header:

#homepageheader { left: 0px; top: 0px; right: 0px; height: 183px;
background-image: url(graphics/header-salmoninbucket.jpg);
background-repeat: no-repeat; background-color: #B6C7B6; }

When you print, however, this doesn't appear.

Is there any way to force the print?


If you mean, how can *you* get the background image to appear on *your*
printer, your browser probably gives you an option to print backgrounds.

If you mean, how can you force the background image to print for a user
who has set his browser not to print the background: Go to the user's
house and keep smacking him until he agrees to change his browser setting.
Mar 8 '06 #5
tradmusic.com wrote [after I rearranged his message so that it makes
sense, with the response coming after the previous material]:
"Johannes Koch" <ko**@w3development.de> wrote in message
news:44***********************@authen.yellow.readf reenews.net...
tradmusic.com wrote:

#homepageheader { left: 0px; top: 0px; right: 0px; height: 183px;
background-image: url(graphics/header-salmoninbucket.jpg);
background-repeat: no-repeat; background-color: #B6C7B6; }

When you print, however, this doesn't appear.


Enable printing of backgrounds in your browser.


Without having to do that! :o)

Is it just not possible?


How can I write my web page so that it will come out of his printer
automatically, even if he has no desire to print it?

How can I write my web page so that images will appear even if the user
has set his browser not to download images?

How can I write my web page so that it will play loud music on the
user's computer even if he deliberately has his volume turned all the
way down?
Mar 8 '06 #6
How terribly grown up of you Harlan.

I don't want to force anyone to print anything, to display images when they
don't want them OR to play loud music! What on earth are you talking about?

"IF" they decide to print a page I would like the header image to appear. If
you'd read the post, instead of jumping in with your childish attitude, you
would have realised that.

Or perhaps this is too complex for you? I guess so.

Regards
Nath.

"Harlan Messinger" <hm*******************@comcast.net> wrote in message
news:47************@individual.net...
tradmusic.com wrote [after I rearranged his message so that it makes
sense, with the response coming after the previous material]:
"Johannes Koch" <ko**@w3development.de> wrote in message
news:44***********************@authen.yellow.readf reenews.net...
tradmusic.com wrote:
#homepageheader { left: 0px; top: 0px; right: 0px; height: 183px;
background-image: url(graphics/header-salmoninbucket.jpg);
background-repeat: no-repeat; background-color: #B6C7B6; }

When you print, however, this doesn't appear.

Enable printing of backgrounds in your browser.


Without having to do that! :o)

Is it just not possible?


How can I write my web page so that it will come out of his printer
automatically, even if he has no desire to print it?

How can I write my web page so that images will appear even if the user
has set his browser not to download images?

How can I write my web page so that it will play loud music on the user's
computer even if he deliberately has his volume turned all the way down?

Mar 8 '06 #7
What a prat.

"Harlan Messinger" <hm*******************@comcast.net> wrote in message
news:47************@individual.net...
tradmusic.com wrote:
Hi,

We have the following in our stylesheet, which acts as a page header:

#homepageheader { left: 0px; top: 0px; right: 0px; height: 183px;
background-image: url(graphics/header-salmoninbucket.jpg);
background-repeat: no-repeat; background-color: #B6C7B6; }

When you print, however, this doesn't appear.

Is there any way to force the print?


If you mean, how can *you* get the background image to appear on *your*
printer, your browser probably gives you an option to print backgrounds.

If you mean, how can you force the background image to print for a user
who has set his browser not to print the background: Go to the user's
house and keep smacking him until he agrees to change his browser setting.

Mar 8 '06 #8
Thank you for the sensible reply.

I really just wondered if there was a way to change that setting from within
a page, or from within CSS. I guess not.

Regards
nath.

"Stan McCann" <me@stanmccann.us> wrote in message
news:Xn************************@216.234.192.142...
"tradmusic.com" <sa***@NOSHPAMtradmusic.com> wrote in news:dumjin$339$1
@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com:
Hi,

We have the following in our stylesheet, which acts as a page header:

#homepageheader { left: 0px; top: 0px; right: 0px; height: 183px;
background-image: url(graphics/header-salmoninbucket.jpg);
background-repeat: no-repeat; background-color: #B6C7B6; }

When you print, however, this doesn't appear.

Is there any way to force the print?


You can't "force" anything. HTML/CSS is about suggestion. What you
are asking about is a function of the client which you have no control
over.

Now, I as a user can go into my print settings and set it to print the
background. Or, I can leave your page and print nothing at all.

--
Stan McCann, "Uncle Pirate" http://stanmccann.us/
Webmaster, NMSU at Alamogordo http://alamo.nmsu.edu/
Now blocking Google Grouper posts and replies.
http://blinkynet.net/comp/uip5.html

Mar 8 '06 #9
tradmusic.com wrote:
What a prat.


<lol>

While we're at it, haven't you noticed that you are the only one
top-posting in this thread? Please feel free to make use of the PageDown
key before beginning your reply.

open the front cover and begin reading there?
the back cover and end up at the front or do you
chapter one or do you start somewhere near
When reading a book, do you start at

http://oakroadsystems.com/genl/unice.htm#upside

--
-bts
-Warning: I brake for lawn deer
Mar 8 '06 #10
On Wed, 08 Mar 2006 20:56:46 GMT, "Beauregard T. Shagnasty"
<a.*********@example.invalid> wrote:
open the front cover and begin reading there?
the back cover and end up at the front or do you
chapter one or do you start somewhere near
When reading a book, do you start at


inflict my preference on others.
news and I was just putting it off. But I wouldn't
Maybe it was because the front page was mostly bad
I read newspapers. I really don't know why.
Actually for quite a few years this was just how

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Mar 8 '06 #11
On Wed, 8 Mar 2006, Beauregard T. Shagnasty wrote:
tradmusic.com wrote:
What a prat.


<lol>

While we're at it, haven't you noticed that you are the only one
top-posting in this thread?


It's a bit late to start worrying about that, after the prat has made
a fast-track application for killfile membership.
Mar 8 '06 #12
What the? :o(
Lost me completely.

Nath.

"Beauregard T. Shagnasty" <a.*********@example.invalid> wrote in message
news:iy********************@bgtnsc05-news.ops.worldnet.att.net...
tradmusic.com wrote:
What a prat.


<lol>

While we're at it, haven't you noticed that you are the only one
top-posting in this thread? Please feel free to make use of the PageDown
key before beginning your reply.

open the front cover and begin reading there?
the back cover and end up at the front or do you
chapter one or do you start somewhere near
When reading a book, do you start at

http://oakroadsystems.com/genl/unice.htm#upside

--
-bts
-Warning: I brake for lawn deer

Mar 8 '06 #13
tradmusic.com wrote:
How terribly grown up of you Harlan.

I don't want to force anyone to print anything, to display images when they
don't want them OR to play loud music! What on earth are you talking about?

"IF" they decide to print a page I would like the header image to appear. If
you'd read the post, instead of jumping in with your childish attitude, you
would have realised that.

Or perhaps this is too complex for you? I guess so.


What's too complex? You asked how to make a background image print when
the user has his browser configured not to print it. Of course I
understand that the circumstance you are discussing is one where the
user has decided to *print your page*. The whole point of that browser
setting, though, is that *when your user prints*, he *doesn't* want the
background to be printed. (Do you know why this setting exists? It's
because (a) a background that may work fine on the screen may work
terribly on paper, and (b) it's a terrible waste of ink.)

But you're seeking a way to override your user's preference as to how
his system should function, just as you would be if you wanted to cause
loud music to play even though the user has the volume turned off. I'm
sorry that the analogies I offered eluded you. The bottom line is that
you're the one who seems to be having trouble grasping the key concept
here--of respecting your user's wishes. How grown up is that?
Mar 8 '06 #14
tradmusic.com wrote:
What the? :o(
Lost me completely.

Nath.
He means (1)
"Beauregard T. Shagnasty" <a.*********@example.invalid> wrote in message
news:iy********************@bgtnsc05-news.ops.worldnet.att.net...
tradmusic.com wrote:

What a prat.

for someone reading a message to figure out what order (3)<lol>

While we're at it, haven't you noticed that you are the only one
top-posting in this thread? Please feel free to make use of the PageDown
key before beginning your reply.

that it's difficult (2)
open the front cover and begin reading there?
the back cover and end up at the front or do you
chapter one or do you start somewhere near
When reading a book, do you start at
everything was said if some people (such as yourself) insist on posting
at the top instead
of underneath the pertinent existing text. (4)
http://oakroadsystems.com/genl/unice.htm#upside

--
-bts
-Warning: I brake for lawn deer


Mar 8 '06 #15
<unsubscribe>
"Harlan Messinger" <hm*******************@comcast.net> wrote in message
news:47************@individual.net...
tradmusic.com wrote:
How terribly grown up of you Harlan.

I don't want to force anyone to print anything, to display images when
they don't want them OR to play loud music! What on earth are you
talking about?

"IF" they decide to print a page I would like the header image to appear.
If you'd read the post, instead of jumping in with your childish
attitude, you would have realised that.

Or perhaps this is too complex for you? I guess so.


What's too complex? You asked how to make a background image print when
the user has his browser configured not to print it. Of course I
understand that the circumstance you are discussing is one where the user
has decided to *print your page*. The whole point of that browser setting,
though, is that *when your user prints*, he *doesn't* want the background
to be printed. (Do you know why this setting exists? It's because (a) a
background that may work fine on the screen may work terribly on paper,
and (b) it's a terrible waste of ink.)

But you're seeking a way to override your user's preference as to how his
system should function, just as you would be if you wanted to cause loud
music to play even though the user has the volume turned off. I'm sorry
that the analogies I offered eluded you. The bottom line is that you're
the one who seems to be having trouble grasping the key concept here--of
respecting your user's wishes. How grown up is that?

Mar 9 '06 #16
Fig
On Thu, 09 Mar 2006 00:42:33 -0000, tradmusic.com
<sa***@NOSHPAMtradmusic.com> wrote:
<unsubscribe>

I don't normally join in these ... but ...

<good riddance>

effin top-posting, stubborn, not-getting-it plonker!
Harlan, hope you have tough skin. Your analogies were spot-on. Feel good
about yourself.

--
Fig
Mar 9 '06 #17
Oh god, another one...jeez.

"Fig" <me@privacy.net> wrote in message news:op.s54ikoolm4iaeb@dell...
On Thu, 09 Mar 2006 00:42:33 -0000, tradmusic.com
<sa***@NOSHPAMtradmusic.com> wrote:
<unsubscribe>

I don't normally join in these ... but ...

<good riddance>

effin top-posting, stubborn, not-getting-it plonker!
Harlan, hope you have tough skin. Your analogies were spot-on. Feel good
about yourself.

--
Fig

Mar 9 '06 #18
Fig
On Thu, 09 Mar 2006 02:13:37 -0000, tradmusic.com
<sa***@NOSHPAMtradmusic.com> wrote:


"Fig" <me@privacy.net> wrote in message news:op.s54ikoolm4iaeb@dell...
On Thu, 09 Mar 2006 00:42:33 -0000, tradmusic.com
<sa***@NOSHPAMtradmusic.com> wrote:
<unsubscribe>

I don't normally join in these ... but ...

<good riddance>

effin top-posting, stubborn, not-getting-it plonker!
Harlan, hope you have tough skin. Your analogies were spot-on. Feel good
about yourself.

Oh god, another one...jeez.


Thought you had gone, but just in case ...

<plonk>

byeeeeeeeeeeeeeee :)

--
Fig
Mar 9 '06 #19
tradmusic.com wrote:
[top-posting corrected]
"Fig" <me@privacy.net> wrote in message news:op.s54ikoolm4iaeb@dell...
On Thu, 09 Mar 2006 00:42:33 -0000, tradmusic.com
<sa***@NOSHPAMtradmusic.com> wrote:
<unsubscribe>

Wow. You were easy!
I don't normally join in these ... but ...

<good riddance>

effin top-posting, stubborn, not-getting-it plonker!
Harlan, hope you have tough skin. Your analogies were spot-on. Feel good
about yourself.


Oh god, another one...jeez.


So, trad ... you like being the odd man out, right?

There is another analogy using apples. :-)

--
-bts
-Warning: I brake for lawn deer
Mar 9 '06 #20
On Wed, 8 Mar 2006 12:44:07 +0000 (UTC), "tradmusic.com"
<sa***@NOSHPAMtradmusic.com> wrote:
Hi,

We have the following in our stylesheet, which acts as a page header:

#homepageheader { left: 0px; top: 0px; right: 0px; height: 183px;
background-image: url(graphics/header-salmoninbucket.jpg);
background-repeat: no-repeat; background-color: #B6C7B6; }

When you print, however, this doesn't appear.

Is there any way to force the print?

Thanks
Nath.


Hi,

not exactly what you're looking after, but as an alternative you could
use an image placed in a div, instead of using a background-image. Use
position: absolute and a low z-index, and you may get an acceptable
result.

Regards
Ryan
Mar 9 '06 #21
On 2006-03-08, tradmusic.com <sa***@NOSHPAMtradmusic.com> wrote:
Thank you for the sensible reply.

I really just wondered if there was a way to change that setting from within
a page, or from within CSS. I guess not.


if you want the header to print don't make it a background image, make it
content.

--

Bye.
Jasen
Mar 10 '06 #22

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

21 posts views Thread by yer.lys | last post: by
1 post views Thread by dpowc | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.