Need help with printing CSS page

Discussion in 'CSS' started by ahkip, Jun 23, 2006.

  1. #1
    I have a question about printing with CSS. I need to create invoice for my customer. I used CSS's absoulte position to set up the location of the element. However, i can't get it work for me.

    The problem is i don't know where is the second page start. I need to know exactly which pixel divide the first page and second page. Anyone have idea with this one?
     
    ahkip, Jun 23, 2006 IP
  2. sgtsloth

    sgtsloth Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hmm. I don't know if it's possible to know where the page ends since it will depend on a printer's resolution if you're using pixels.

    CSS supports Inches as a unit of measurement, this is probably what you'll want to use for Print. And fonts should be sized using pt.

    Here's an article on styling CSS for print, maybe it's helpful?

    Here is another article from W3.

    ian :)
     
    sgtsloth, Jun 26, 2006 IP