Detecting browser print margins?

Discussion in 'Javascript' started by Mango, Feb 25, 2008.

  1. Mango

    Mango Guest

    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
    Mango, Feb 25, 2008
    #1
    1. Advertising

  2. 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'...
    The Natural Philosopher, Feb 25, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Dalberg

    Setting print margins in asp.net?

    John Dalberg, Oct 12, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    817
    John Dalberg
    Oct 12, 2004
  2. Ken Varn
    Replies:
    1
    Views:
    914
    Scott Allen
    May 6, 2005
  3. Ian Rutgers

    IE Print Margins

    Ian Rutgers, Nov 10, 2005, in forum: HTML
    Replies:
    2
    Views:
    2,978
    brucie
    Nov 10, 2005
  4. keto
    Replies:
    0
    Views:
    903
  5. Mortisus
    Replies:
    2
    Views:
    208
    Mortisus
    Mar 29, 2005
Loading...

Share This Page