Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Detecting browser print margins?

Reply
Thread Tools

Detecting browser print margins?

 
 
Mango
Guest
Posts: n/a
 
      02-25-2008
I'm trying to print some text in a very specific position on a page, so
that it will show through the window of an envelope when folded.

This is easy to do, as long as the browser's print margins are set to 0,
or I subtract the width of the margins from the position of the text.

My question is: is there a technique for detecting browser print
margins? It'd be nice not to have to warn users to set them to
something specific.

Cheers
Mango
 
Reply With Quote
 
 
 
 
The Natural Philosopher
Guest
Posts: n/a
 
      02-25-2008
Mango wrote:
> I'm trying to print some text in a very specific position on a page, so
> that it will show through the window of an envelope when folded.
>
> This is easy to do, as long as the browser's print margins are set to 0,
> or I subtract the width of the margins from the position of the text.
>
> My question is: is there a technique for detecting browser print
> margins? It'd be nice not to have to warn users to set them to
> something specific.
>
> Cheers
> Mango

I am inclined to suggest, give up and offer a downloadable PDF..ther are
too many variables..paper size..Letter or A4..dpi settings.. browser
'interpretations'...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
print a vs print '%s' % a vs print '%f' a David Cournapeau Python 0 12-30-2008 03:19 AM
Problem - I want to print Current Output of Pdf file and should print once.I get print dialog box but it is not working keto Java 0 05-30-2007 11:27 AM
Detecting when my browser opens a new browser window Mortisus Javascript 2 03-29-2005 02:24 PM
Detecting Browser Sergey Poberezovskiy ASP .Net 2 09-15-2004 04:05 PM
Unlarging the print to print using PDF file to print Bun Mui Computer Support 3 09-13-2004 03:15 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57