473,770 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I print all web content background Image, colors...

donilourdu
53 New Member
Hi I am Doni Agna Lourdu.

Can any one tell me

"How can I print all Web Content"

But I know To print background images, open "Tools" menu in Internet Explorer, select "Internet Options", switch to "Advanced" tab and enable "Print background colors and images" in "Printing" section.

But I dont want this beacuse it is browser compatable. I need a code for print whole content when I click print.

Plz help me
Looking for favorable reply

with regards,
Doni Agna Lourdu
Apr 12 '08 #1
2 2010
Frinavale
9,735 Recognized Expert Moderator Expert
Hi I am Doni Agna Lourdu.

Can any one tell me

"How can I print all Web Content"

But I know To print background images, open "Tools" menu in Internet Explorer, select "Internet Options", switch to "Advanced" tab and enable "Print background colors and images" in "Printing" section.

But I dont want this beacuse it is browser compatable. I need a code for print whole content when I click print.

Plz help me
Looking for favorable reply

with regards,
Doni Agna Lourdu
Leave it up to the users to decide if they want to print the background image.
There is only so much you can do with Printing Css to format what is printed but anything regarding browser settings will be out of your hands. The reason is that most browsers won't let you programmaticall y adjust printing settings.

-Frinny
Apr 14 '08 #2
redGuard
1 New Member
I have search for the solution , in css .
And I haven't find any suggestion on the different threads.
So After some tests, I want to post my css thrick.

First, we will use the list-item display, cause the browser let you print any list image ;)
And now you can imagine the css thrick :



Expand|Select|Wrap|Line Numbers
  1.      display:list-item; 
  2.      list-style-image:url('images/print/myImage.png');  
  3.      list-style-position: inside;
An yeahhhhhh it works :)
Feb 4 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2692
by: RoDzZzZ | last post by:
when i try print (ctrl +p) my webpage, my printer not print the backgrounds and bgcolors of my tables.... what i need make to show the backgrounds and bgcolors in my paper when the user print the page? thankzzz
3
37218
by: Felix Natter | last post by:
hi, is there a way (html/css/javascript) to force IE to print background-colors exactly as specified in html/stylesheets? I tried to use @media print { ... } to override IE's "print background colors + images" option, but it doesn't work. Any other idea? I'd like to avoid relying on the user for setting this option.
25
12945
by: Neal | last post by:
According to the CSS lint at http://htmlhelp.org/tools/csscheck/, "The shorthand background property is more widely supported than background-color." Can anyone point me to, or provide, information on what browsers have difficulty with the non-shortcut methods of setting background properties?
5
4635
by: Lee K. Seitz | last post by:
I have a set of pages with a special stylesheet used to override some styles for printing. One of the things I've tried to do is reverse the colors of my navigation. On the screen, I have a black background and the navigation is red on yellow. For print, I (obviously) have a white background and wanted the navigation to be reversed (yellow on red) for better clarity. I've done print preview in IE 6, Opera 7.5, and Netscape 7.1 (all...
8
3943
by: la_haine | last post by:
Hi, A website I work on has a print stylesheet to strip navigation and things out of a page, and changes the fonts and various bits and pieces here and there. What I'd also like is something small (a footer, perhaps) that says something along the lines of 'you are viewing a printed version of , available at '. I know I can do this by just adding the content and using display: none for the screen CSS, but then it becomes visible in text...
2
2631
by: Wim van Iersel | last post by:
I hope somebody knows what I´m doing wrong here I have a page with two stylesheets: - default.css media="screen, print" http://www.tilburg.nl/development/stylesheets/default2.css - print.css media="print" http://www.tilburg.nl/development/stylesheets/print.css In the print.css I reset the background-image, background-color,
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">...
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
2
1812
by: shapper | last post by:
Hello, How can add a background color to each table cell in a table header and also add a small image on the bottom right corner of each of those cells? Thanks, Miguel
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
10101
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9906
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
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...
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
3
2850
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.