Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / May 2005



Tip: Looking for answers? Try searching our database.

thin lines on printer (HTML)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Iver Erling Årva - 26 May 2005 14:21 GMT
Anyone know how I can get a printer to print thin lines using html print? 1
pixel is the least on screen, but that shows up as 4points or something like
that on a laser. I would like to have that 1pixel to show up as thinner
lines when printing to a printer. Is this possible? Other programs seem to
have little problem with this...
Thanks for any help!

iver@tda.no
Iver Erling Årva - 27 May 2005 13:01 GMT
Strange how everybody else's questions are answered and how I never seem to
get answers to my questions. They're probably to silly to be taken seriously
I recon.
In the meantime I have found the answer myself. VML. Easy, free of charge
and really straight forward.

IVer@tda.no

> Anyone know how I can get a printer to print thin lines using html print?
> 1 pixel is the least on screen, but that shows up as 4points or something
[quoted text clipped - 4 lines]
>
> iver@tda.no
Grant Wagner - 31 May 2005 15:56 GMT
> Strange how everybody else's questions are answered and how I never
> seem to get answers to my questions. They're probably to silly to be
[quoted text clipped - 10 lines]
>> possible? Other programs seem to have little problem with this...
>> Thanks for any help!

Perhaps you received no answer because how a user agent prints a page
depends on the user agent, on the operating system and on the printer
driver, 3 things we can't know in your environment. The question is also
off-topic for comp.lang.javascript, since there is little that could be
done in JavaScript to change the width of "a line" (where and how these
lines appeared was never described) - and almost anything that could be
done in JavaScript to control the width of "a line" could also be done
using CSS.

Example using table borders for your definition of "a line":

<style type="text/css">
table.x, table.x td {
   border: 1px solid Black;
}
@media print {
   table.x, table.x td {
       border-collapse: collapse;
   }
}
</style>
<table cellpadding="2" cellspacing="0" class="x">
<tr><td>TEST</td></tr>
</table>

Signature

Grant Wagner <gwagner@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.