?
Solved

Table colors and images

Posted on 2004-10-19
5
Medium Priority
?
184 Views
Last Modified: 2010-04-06
Here is what I am trying to do.  With the help of a member I was able to finally figure out my online coupon with the following code, works great!:

<html><head>
<style>
.coupon {
     border: 2px gray dashed;
     width: 400px;
     padding: 5px;
}
</style>
</head><body>
<div class="coupon">
     This is your wonderful coupon!<br />
     Print it out to recieve $0.50 cents off your next can of cat food!<br />
     Enjoy Kitty Loves Me brand!<br />
</div>
</body></html>

What I would like to happen and I have tried it a few ways without any luck.  I would like the table background say a light gray and when it prints it is a light gray.  But when I try that it comes out white since the table color will not print.  Is there a way to do like an image under then I can overlay my text?

0
Comment
Question by:precision
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:nurbek
ID: 12346284
it depends on the Browser settings

from the Tools -> Internet Options -> Advanced

check the "Print background colors and images"

:)




 
0
 

Author Comment

by:precision
ID: 12346382
That is good for my machine, I want something that anyone who prints, it will print out in color.  Like an image table background that I can overlay text on.
0
 
LVL 13

Expert Comment

by:nurbek
ID: 12346403
anyone who wants to print it out with colors
they also should change their browser settings
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 1000 total points
ID: 12346717
What I would like to happen and I have tried it a few ways without any luck.  I would like the table background say a light gray and when it prints it is a light gray.  But when I try that it comes out white since the table color will not print.  Is there a way to do like an image under then I can overlay my text?

You cannot control user settings.  You have no way of knowing what kind of printer the user has.  Images in general do not print well. You could us a layer wiht an image an then overlay the text, but that will require absolute positioning, and the position of the test and image will not line up the some when it is printed about 75% of the time.

If an image is critical then you will have to do the page with a print friendly format like PDF.  If color is important, then you are going to be disappointed because only a small percentage of users are going to have color printing capabilities.

Cd&
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 12346847
Glad we could help.  Thanks for the A. :^)

Cd&
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question