Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 456
  • Last Modified:

setting div width in inches inside <td>

I'm playing with different methods to control the width of a table that will be printed. People have printers that are set to different dpi. So, I thought I could make the table the same size on every printer by putting in the first row:

 <tr><td colspan="3"><div style="width:7.5in"></div></td></tr>

This makes the table about 10 inches wide on my 800x600 monitor and off the page in print preview.

What am I doing wrong or can this even be done (specifying width in inches)?
0
teddro
Asked:
teddro
  • 2
1 Solution
 
jaysolomonCommented:
teddro

Look at this link, wich i participated in and review the posted comments to Cd& question.

It is a very good and interesting thread on printing a web page.

http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20543061.html

Hope this helps
jAy
0
 
teddroAuthor Commented:
jaysolomon, thanks for the reply. That thread pretty much covered all the "correct" methods. To be honest, I've been working on this app for 4 months and I saved what I thought would be the hardest part for last, designing the reports. Maybe I'm trying to be to perfect but I was concerned about the difference in print appearance between say a HP 5si and some low end inkjet. If you use pixels for width then you are at the mercy of the dpi output of the printer. Just to get this project completed I'll probably go with the recommendations from that thread and base my printout widths on 550 or 600 pixels. It looks good on an HP5si printing from IE5.0+ on Windows.
0
 
jaysolomonCommented:
glad i could help you teddro.


Happy Programing

jAy
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now