/    Sign up×
Community /Pin to ProfileBookmark

Where to implement a Page Break to print an HTML report

Hi!

I need to print a report generated in HTML, but I have a big problem and that’s: How can I determine where to implement a Page Break? there’s any way to do that with CSS?

I mean, the different FONT-SIZE of the variable datagroups makes that the page break shouldn’t be placed always in the same place… so… how can I determine where should be necessary to implemente a page break?

Also I would like to know:

  • Can I adjust the margins (top, left, right an bottom) of a document using CSS?

  • Can I customize the header and footer of a printed document?
  • Thanks!

    to post a comment
    CSS

    2 Comments(s)

    Copy linkTweet thisAlerts:
    @ffurnaiApr 20.2005 — Don't know if I can help with parts 1 and 3 of your question but part 2 definitely.

    [CODE]
    body {
    margin: 5px 4px 3px 2px;
    }
    [/CODE]


    sets each of the four sides starting with the top and rotating around clockwise (top, right, bottom, left) of any element in CSS be it body, table, div, h1, whatever.
    Copy linkTweet thisAlerts:
    @schmidtyOct 25.2005 — 
    - Can I customize the header and footer of a printed document?

    Thanks![/QUOTE]


    If anyone knows how to do this let me know...I actually need to just get rid of them...(using CSS of course)
    ×

    Success!

    Help @andres_giraldo spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...