473,770 Members | 2,113 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 62857
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
3627
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
11004
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">...
1
3307
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 where the last link stops. I want the background all the way to the bottom. How can I force...
7
5129
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
3190
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 "false image" Problem is i have a big gap between the "False" image and the next line. How do I solve...
2
11743
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 print out my code start here
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8933
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.