473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Images don't print

Apologies for posting code (I'll try to keep it brief).
I have the following CSS:

li
{
display:block;
background-image:url(screengray.gif);
padding:3px;
margin:1px 0;
list-style-type: none;
}
li span
{
background: url(square.bmp) no-repeat 0 4px;
padding-left: 15px;
}

When combined with the HTML below, it displays a semi-transparent gray
background, with an image to the left of the text. However, when I print,
the gray background image and the image to the left of the text are not
printed. Any idea why? Here's the HTML code fragment:

<ul>
<li><span>an item</span></li>
<li><span>another item</span></li>
</ul>

Thanks,
Peter Foti
Jul 20 '05 #1
5 3850
Peter Foti schrieb:
When combined with the HTML below, it displays a semi-transparent gray
background, with an image to the left of the text. However, when I print,
the gray background image and the image to the left of the text are not
printed. Any idea why?


The browser has an option that enables/disables background image
printing. It saves ink.
Matthias
Jul 20 '05 #2
Hi,

Peter Foti wrote:
When combined with the HTML below, it displays a semi-transparent gray
background, with an image to the left of the text. However, when I print,
the gray background image and the image to the left of the text are not
printed. Any idea why?

most browser let the user choose whether they want to include background
colours and/or images in printings. This option is disabled per default,
probably to work with heavily colourized web-pages without print media
stylesheets.

regards
-- jochen

Jul 20 '05 #3
"Peter Foti" <pe****@systolicnetworks.com> skrev :
When combined with the HTML below, it displays a semi-transparent gray
background, with an image to the left of the text. However, when I print,
the gray background image and the image to the left of the text are not
printed. Any idea why?


You have to set your browser to print background images.
--
Knud
Jul 20 '05 #4
On Tue, 18 Nov 2003 15:55:02 -0500, Peter Foti
<pe****@systolicnetworks.com> wrote:
When combined with the HTML below, it displays a semi-transparent gray
background, with an image to the left of the text. However, when I
print,
the gray background image and the image to the left of the text are not
printed. Any idea why?


Most likely because the browser you are using are set up NOT to print
background images.

In Internet Explorer:

Tools | Internet Options | Advanced | Printing (quite a bit down on the
list)

--
Ole Kristian Bangås
Jul 20 '05 #5
Thanks to all that replied. :)

Regards,
Peter
Jul 20 '05 #6

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

Similar topics

5
by: Andreas Volz | last post by:
Hi, I used SGMLParser to parse all href's in a html file. Now I need to cut some strings. For example: http://www.example.com/dir/example.html Now I like to cut the string, so that only...
5
by: navavil | last post by:
Hi I used some css class in my web page for graphic design (with url), now when I am sending the page to printer all the background images are gone )-: ? 10x
20
by: Roberto | last post by:
Hallo, I'm building a page that wants to respect XHTML 1.0 strict and CSS2 specifics. In this page I have to present thumbnails arranged to cover the entire width of the window, but there are...
0
by: Sugapablo | last post by:
I'm using the following code to generate images: strFile = Request.QueryString("id") FPath = "c:\docs\" & strFile Set adoStream = Server.CreateObject("ADODB.Stream") adoStream.Open()...
3
by: marwa mohamed | last post by:
salamo alikom hi all when i run report that includes image control linked to a field in the table that contains the image path(on the server)and the record source of the report contains over 30...
2
by: NASAdude | last post by:
I'm working on a report that shows a lot of data, so I've set it up so it is 2-pages wide in landscape view for each record. ie: The report is 22" wide (less margins). On the left page there are...
6
by: moondaddy | last post by:
I have an application where I need to print images where the size has been reduced down to a fraction of a thumbnail and the original image is several inches high and wide. We're using a special...
61
by: phil-news-nospam | last post by:
Why does SVG need a different tag than other images? IMHO, SVG should be implemented as an image type just like any other image type, allowing it to work with <img> tags, and ... here is the...
1
by: Xah Lee | last post by:
The following is a program to generate thumbnail images for a website. Useful, if you want to do that. It is used to generate the thumbnails for my “Banners, Damsels, and Mores” project...
10
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...

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.