CSS & Printer

Discussion in 'HTML' started by Xavier Perseguers, Apr 16, 2004.

  1. -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Hi there,

    I'm a newbie with CSS :)

    I've defined this div id:

    #content {
    position: absolute;
    left: 10px;
    top: 181px;
    width: 750px;
    height: auto;
    text-align: justify;
    }

    I also have a title before, a menu bar and so on, that's why there is
    "top: 181px;"

    Yet, I have another stylesheet for printing, that simply overrides
    what's not good.

    The problem is that my content may be really big (in term of height) and
    my browser does not want to "cut" the content to print it on new pages:
    it tries to fit all of my page on a single sheet of paper.

    When I try to print with MS Internet Explorer, no problem, the text goes
    on multiple sheets of paper, but with Firefox not!

    What should I do?

    URL if you want to see the problem: http://www.perseguers.ch/LaTeX/tableaux/

    Thanks

    Xavier Perseguers
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (MingW32)
    Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

    iD8DBQFAgCdrUUVNnsbn6BERAphnAJ4/RmNf0hN2T/atnrGwRPfqaOqiagCfV2lL
    G7IVUJXA2gK8PHbWjPXINZ8=
    =vWFK
    -----END PGP SIGNATURE-----
     
    Xavier Perseguers, Apr 16, 2004
    #1
    1. Advertising

  2. -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    | #content {
    | position: absolute;
    | left: 10px;
    | top: 181px;
    | width: 750px;
    | height: auto;
    | text-align: justify;
    | }

    Could someone help please?

    I've tried with

    - - MS Internet Explorer 6 : OK for printing
    - - Opera 7.? : OK for printing
    - - Mozilla (last one) : as firefox 0.8 : it wants to fit all content on a
    single page!

    I repeat my question: I do have a really big content div tag (yet it is
    no more an id but a class, ie #content -> .content)

    How can I *force* mozilla and other mozilla-like browser to break
    correctly my document when they try to print it?

    Thanks

    Xavier Perseguers
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (MingW32)
    Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

    iD8DBQFAgZNUUUVNnsbn6BERAnPCAJ4991nncnKNdhz5RI13F9T3Q+MRowCcD7tL
    qhJ6mz3tygqku4BPcqPTdP0=
    =IviB
    -----END PGP SIGNATURE-----
     
    Xavier Perseguers, Apr 17, 2004
    #2
    1. Advertising

  3. Xavier Perseguers wrote:

    > The problem is that my content may be really big (in term of height) and
    > my browser does not want to "cut" the content to print it on new pages:
    > it tries to fit all of my page on a single sheet of paper.
    >
    > URL if you want to see the problem: http://www.perseguers.ch/LaTeX/tableaux/


    Probably caused by all that absolute positioning. Scrap it.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?page=132
     
    Toby A Inkster, Apr 18, 2004
    #3
    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. Samuel Lee
    Replies:
    0
    Views:
    525
    Samuel Lee
    Nov 11, 2003
  2. Eric
    Replies:
    4
    Views:
    736
    clintonG
    Dec 24, 2004
  3. tom watson

    print.css and screen.css

    tom watson, Sep 9, 2003, in forum: HTML
    Replies:
    1
    Views:
    472
    Jukka K. Korpela
    Sep 9, 2003
  4. Mike
    Replies:
    1
    Views:
    1,123
    Andrew Morton
    Feb 11, 2009
  5. Replies:
    5
    Views:
    150
Loading...

Share This Page