setting div width in inches inside <td>

Posted on 2003-03-17
Medium Priority
Last Modified: 2008-03-10
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)?
Question by:teddro
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
LVL 16

Accepted Solution

jaysolomon earned 1000 total points
ID: 8153961

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.


Hope this helps

Author Comment

ID: 8154499
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.
LVL 16

Expert Comment

ID: 8154533
glad i could help you teddro.

Happy Programing


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

777 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