473,542 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 62816
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**@w3develop ment.de> wrote in message
news:44******** *************** @authen.yellow. readfreenews.ne t...
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***@NOSHPAMt radmusic.com> wrote in news:dumjin$339 $1
@nwrdmz02.dmz.n cs.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**@w3develop ment.de> wrote in message
news:44******** *************** @authen.yellow. readfreenews.ne t...
tradmusic.c om wrote:

#homepagehea der { 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**@w3develop ment.de> wrote in message
news:44******** *************** @authen.yellow. readfreenews.ne t...
tradmusic.co m wrote:
#homepagehe ader { left: 0px; top: 0px; right: 0px; height: 183px;
backgroun d-image: url(graphics/header-salmoninbucket. jpg);
backgroun d-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.1 42...
"tradmusic. com" <sa***@NOSHPAMt radmusic.com> wrote in news:dumjin$339 $1
@nwrdmz02.dmz.n cs.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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
3601
by: Peter Foti | last post by:
I have seen lots of examples where some HTML text is replaced with a background image using CSS. For example, replacing the text of an <h1> with a graphical logo, like so: CSS: h1 span { display: none; } h1 { height: 100px; background: url("mycompany.gif") no-repeat 35px 40px; } HTML: <h1><span>My Company</span></h1>
21
10973
by: yer.lys | last post by:
When I print my web page the background image shrinks severly when I print from Firefox, but when I print in IE it cuts it like I would expect it to. Is this a bug or is there a mistake in my code somewhere? <--------------------------MY CODE-----------------------------> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
1
3286
by: RJ | last post by:
Hello! I am trying to lay out a left navigation column with a background image, where the left nav column runs the entire scrolled height/length of the page. The float:left column layout works fine, but the background image doesn't continue downward in this column below the links. I tried this in FireFox 1.0.7 and IE6, but this image stops...
7
5115
by: Nilesh | last post by:
I am using background-image attribute in a CSS file and linking the CSS file to aspx page. But strangly, background-image attribute is not working for relative URL. e.g. If I apply following css ..navbar-background { background-image: url(images/menubar.gif); } the image is not appearing on the page. It seems that IE is picking
1
3176
by: dpowc | last post by:
How do I print a background image? I read another article that says as long as print background becomes a default for IE settings, we need to "cheat" a little to print a site as close to what we see on the browser. So we created a "false" image of the background image, kept it from being displayed on site, but on the print sheet, calls for the...
2
11541
by: yogarajan | last post by:
hi i have create one html file. That file contains background image . but print preview time not display . i am go to tools -> internet options-> advanced options -> printing -> print background colors and images - checkbox enabled that time only appear background image my client donot that step i want default background image with...
0
7330
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7571
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7670
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5867
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3376
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
943
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
620
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.