473,324 Members | 2,501 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,324 software developers and data experts.

css background-color print workaround

Hi All,
Does anyone use vml to force the printing of background-colors
in IE clients?

Or is there a better way.

Regards,

slyi

FYI: moved from js related group

eg:
<html xmlns:v="urn:schemas-microsoft-com:vml" >
<head>
<style>
@media all { v\:* {behavior:url(#default#vml);} }
span {height:50;width:99%;background-color:red}
</style>
<title>background-color print workaround</title>
</head>
<body >
<span>
<v:rect style='width:100%;height:100%;' fillcolor="red"
strokecolor="red">
<v:textbox>
<h1>This is a title with a background</h1>
</v:textbox>
</v:rect>
</span>
</body></html>

Apr 1 '06 #1
3 21738
slyi wrote:
Hi All,
Does anyone use vml to force the printing of background-colors
in IE clients?

Or is there a better way.

Regards,

slyi

FYI: moved from js related group

eg:
<html xmlns:v="urn:schemas-microsoft-com:vml" >
<head>
<style>
@media all { v\:* {behavior:url(#default#vml);} }
span {height:50;width:99%;background-color:red}
</style>
<title>background-color print workaround</title>
</head>
<body >
<span>
<v:rect style='width:100%;height:100%;' fillcolor="red"
strokecolor="red">
<v:textbox>
<h1>This is a title with a background</h1>
</v:textbox>
</v:rect>
</span>
</body></html>

No. Yes: CSS media="print"
Apr 1 '06 #2
Schraalhans Keukenmeester wrote:
Does anyone use vml to force the printing of background-colors
in IE clients?
Eugh. If the user has the "Print background colours and images" option off,
its probably because they haven't felt the need to burn through large
amounts of ink to print a webpage. Trying to work around that isn't a
fantastic idea.
Or is there a better way.
No. Yes: CSS media="print"


Print specific stylesheets cannot override the user preference "Print
background colours and images" in any browser as far as I'm aware.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Apr 1 '06 #3
slyi wrote:
Hi All,
Does anyone use vml to force the printing of background-colors
in IE clients?

Or is there a better way.

Regards,

slyi

<snip>

Hi,

I don't force anyone to print background colours and I would hope that there
is no way to do so. Ink is expensive, often cheapest when it comes with a
money back discount printer. When I want to print the background, I will.
The rest of the time, I go for not background, draft mode, and usually grey
scale. Occasionally I opt for a better quality and colour print. I don't
want to be forced to print the background, and I don't want to be forced to
go replace my ink cartridges more often than I already have to.

Carolyn
--
Carolyn Marenger

Apr 2 '06 #4

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

Similar topics

2
by: Markus Mohr | last post by:
Hi, everyone, I have a special problem: For every monitor resolution in 200 pixel steps from 800 to 1600 pixels I have an image to be shown as centered background-image. Those images all...
4
by: Gequina | last post by:
Something goes wrong in my script. I'm all new to it so i don't know much yet. I have a set of buttons. And when you click on either of them, the background image will change. Only it's not...
3
by: ribinha | last post by:
Hi all, I am having problems loading background images on my pages. I have created a css to display the images. It works just fine on my test box, but when I tried on real pages it wont upload any...
3
by: Viken Karaguesian | last post by:
Hello all, I need somehelp with background tiling. I have a sneaking suspicion that what I want to do is not possible, but I'll ask anyway. :>) First some background: Here's the site in...
6
by: Francois Bonzon | last post by:
Any idea how I can launch a background task from a PHP script? For example, when a user posts on my message board, it may fire many e-mail notifications to other users, and other tasks. I want...
0
by: Jeb Hunter | last post by:
Well, how can I describe this succinctly? I have a page with DIVs that us background images to produce a border effect. It works perfectly well, but I want to make up (for now) 3 different...
3
by: KNDesign | last post by:
I've set a background image to repeat-y and at 100% height. It appears fine when I open the window, but when I resize to a smaller height so that I must scroll down to see the rest, the background...
8
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I'm trying to figure out how to modify a panel (panel1) from a backgroundworker thread. But can't get the panel to show the new controls added by the backgroundwork task. Here is my code. In...
6
by: Rob | last post by:
Hello, I'm sure this has come up before. I have need for a collection of all elements/objects in an HTML document that have any kind of an attribute (HTML or CSS) that is making use of a URL to...
1
by: nicky77 | last post by:
Hi, I've created a nav bar using a background image for rollover effects. Everything works as I had hoped, however, for some reason it seems that an area of whitespace (the same size of the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.